Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL






SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Importing Dump From MySQL 5.0.51a To - 4.1.21


Does anyone know of any issues of importing data into two different databases? And how would I import a dump from 4.1.21 to 5.0.51a ?




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
MySQL Syntax Error When Importing From A .sql Dump
I'm attempting to install JForum on my local server (WinXP Pro). I'm running MySQL Community Server 5.1.23

When attempting to import from a .sql dump, I receive the following syntax error. This error has been produced through JForum's installation wizard, SQLyog and the MySQL CLI. The error is as follows: Code:

View Replies !   View Related
Importing Large Dump File Into Mysql On Windows
I have a 80 meg dump file created with mysqldump. I need to import it
into a mysql db on Windows.

On linux, I say "shell>mysql dbname < dumpfilename"
But that does not work on Windows. Importing via phpmyadmin is not
possible either since we are limited to 2 Meg file size.

View Replies !   View Related
ERROR 2013 (HY000) While Importing Large Mysql Dump File
I'm trying to import these sql dump files. There are a bunch of them, all multiple gigs. Most are around 3-5gigs, one is 69gigs.

Well it gives me this error after a very short while:

ERROR 2013 (HY000) at line 103: Lost connection to MySQL server during query

The line number varies. Also, when it's processing, before it actually gives the error, if I try to login to phpMyAdmin to watch, it will sometimes let me login to the first page, but if I click anything it kicks me out. And the sites that are running on the server that use the mysql server (different db) throw this db mysql error through the php:

Out of memory (Needed 536870880 bytes)

And then as soon as the error is throw:

Mysql reboots I think, the sites say they can't connect with provided settings. And if phpMyAdmin is sitting on the first page, it kicks me out.

So something is wrong...

View Replies !   View Related
Importing A Dump
I'm having a problem when trying to import a .sql from MySQL 4.1.7-nt running on a windows XP machine to a MYSQL 3.23 running on a Red-Hat linux machine.
When i run the "mysql -u Username -pPassword 'DB_name' < file.sql" , i get an error : "ERROR 1064 at line 20: You have an error in your SQL syntax near 'ENGINE=MyISAM
DEFAULT CHARSET=latin1' at line 6 "
Now i'm quite new to Mysql but i'm wondering if its not a backward compatibility problem. I'm able to import the file fine on my Windows machine and am able to import a dump from the 3.23 server without problems.

View Replies !   View Related
Importing Dump Using SSH
I have made a dump of a site using phpMyAdmin, and stored the dump as /httpdocs/myDump.sql.gz. I am trying to restore it using SSH with the following command:
mysql -u myUserName -p myPassWord -h myHost myDatabase < /httpdocs/myDump.sql.gz
and get the prompt:
-bash: /httpdocs/myDump.sql.gz: No such file or directory
when it clearly does exist. The main problem is that the host cannot allow you to create a new database via phpMyAdmin, so i have to import the dump using SSH. This means that the database i am trying to create ("myDatabase") doesn't yet exist - am i right in assuming the restore will create it (it contains the commands to do so)? Otherwise, what is going wrong?



View Replies !   View Related
UTF8, Problem When Importing Dump
I'm trying to import multilanguage database dump. When I try to open this dump with text editor all text in languages other than english display correctly.

I'm trying to import this UTF8 dump into MySQL table. First, I'm creating table:

CREATE TABLE `table` (
....
) CHARACTER SET utf8 ;

Then I import dump into database:

mysql> load data infile 'file.txt'

When I'm viewing database with MySQL Query Browser, international characters looks incorrect. For example, "Ð?делаида" instead of russian "&#1040;&#1076;&#1077;&#1083;&#1072;&#1080;&#1076;&#1072;".

By the way, when I enter data manually using MySQL Query Browser into the MySQL database, everything works fine.

View Replies !   View Related
Mysql Dump On XP
I am having terrible trouble trying to find out the right command to restore a mysql dump into mysql on my XP machine. I am trying to use both the windows command line and the mysql command line client, but I can't get anything to work!

Been trying this:

mysql databasename < databasebackupfile.txt

And variations of with no success :-( I have checked the help file, and this is what it says to use. I am not a newbie to this, but I have never used mysql on windows.

View Replies !   View Related
MySQL Dump Help With Version ;4.0.14-log
Every time I try to do a back up of the databases on our system i get this
error:

ea990# mysqldump -u root -p --opt -full test > test.sql
mysqldump: unrecognized option `--max_allowed_packet=16M'

and it doesnt seem to dump anything, I have tried various options, and
usually use
my db back up script but that doesnt seem to work as well.

----
#!/bin/sh
# mysql nightly dump

PASS="xxxxx"

DATE=`date "+%Y-%m%-%d"`
/usr/local/bin/mysqldump --password=$PASS -A >
/usr/home/http/mysql_dump/backup.$DATE
/usr/bin/bzip2 -9 /usr/home/http/mysql_dump/backup.$DATE
-------

but that gives me the same error as above.

View Replies !   View Related
MySQL Dump Date
i am using mysql dump from an auto scheduled task. i need the date to be in the file name when i back it up. at the moment the existing files just get written over.

View Replies !   View Related
Mysql Dump File
I've got a file that has a load of INSERT INTO lines in it which I'm dumping into my database. This works fine but I was wondering is it possible to display a text output from this file.

e.g.
INSERT INTO table1 VALUES (1,'a');
INSERT INTO table1 VALUES (2,'b');

## display 'Table2 entry finished'

INSERT INTO table2 VALUES (1,'c');
INSERT INTO table2 VALUES (2,'d');

## display 'Table2 entry finished'


View Replies !   View Related
Stop Mysql Before A Dump?
I want to make a dump on my DB, but I was asking myself if there are any problem to do that without stopping the DB before.

Have I to stop my DB before mysqldump? is there any provability that my dump backup will have any errors?

View Replies !   View Related
Any Way To Dump From Mysql 5.0 To 4.1.22-standard?
I have a MySQL 5.0 database that I have dumped to a flat file with:

mysqldump -u username -p databasename > mydatabase.sql

I have written a cgi perl script to import the dumpfile into a new table in an existing database. The script runs fine when I run it on the local host. But when I upload the same script and dumpfile onto a webserver that is running MySQL 4.1.22-standard, I get the following error when trying to import:

DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101' at line 7 at mysqlimport.cgi line 24, <FH> chunk 1.

I would have thought that a dumpfile would not be version dependent, but apparently it is. The database is very simple.

- Is there any way to edit it so that it will import into the lower rev db?
- Or is there a way to dump it into a lower rev format?
- Or is there some other solution (other than upgrading the server)?

View Replies !   View Related
Mysql Dump And Windows
I have installed mysql on windows.

However, due to database corruption issues I would like to perform a backup every hour or so. As a result I plan to schedule a mysql dump at regular intervals(for example using the AT command). The problem is that the user that runs mysql dump has to supply the password. ie: myslqdump -u user -p databasename > backup.sql

My question is: how do I specify (in a .cmd file) the password to enter after the mysql command above? I do not think "echo password" is enough for mysql to pick up the password.

View Replies !   View Related
Mysql Dump Woes!
Hi guys, i'm currently in the process of moving servers. And i'm trying to move my sql file for a phpbb forum to the new host. I'm using BigDump to install the .sql file. However it doesn't seem to work. The installation of the .sql file gets to about 30% and then i get an error such as

Error at the line 117905: INSERT INTO phpbb_asearch_wordlist (word_text, word_id, word_common) VALUES('françois', &#55619;&#56747;', &#390;');
Query: INSERT INTO phpbb_asearch_wordlist (word_text, word_id, word_common) VALUES('françois', &#55619;&#56747;', &#390;');
MySQL: Duplicate entry 'françois' for key 1
Stopped on error
I have edited and then deleted the row that caused the problem but i will then get an error for each line after that. So it's not an obvious syntax error as such.

I have a feeling that the problem is between the settings of both myslq databases. Here is a summary:

Exporting Server is running:
MYSQL 4.1.12
Language: English (en-utf-8)
MySQL Charset: UTF-8 Unicode
MySQL connection collation: utf8_bin
All rows are MyISAM and have collation latin1_swedish_ci

Importing Server is running:
MYSQL 4.1.12
Language: English (en-utf-8)
MySQL Charset: UTF-8 Unicode
MySQL connection collation: utf8_general_ci
All rows are MyISAM and have collation latin1_swedish_ci

Would the difference in the collation types make any difference?

View Replies !   View Related
Mysql Dump Schema
I'm trying to get a hold of MySQL and am trying to dump the schema. This is the command I'm using:

mysql> mysqldump -user root -password=rootpass flatland > flatland.dump;

And this is the error I'm getting:

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqldump -user root -password=rootpass flatland > flatland.dump' at line 1

Any suggestions? I'm running the latest version of MySQL.

View Replies !   View Related
Read Mysql Dump File?
I am trying to read a mysql dump file that I was given from a mysql dump file into my mysql server, I am using the following command at the mysql command line and get the following error:....

View Replies !   View Related
Archived Dump Of MySQL Database
We are planning on moving to a different server and was wondering if
there was a way to make an archived dump of the database?

View Replies !   View Related
Mysql Dump And Lock Tables
I am getting different results using mysqldump between versions.

The only option I am specifying is --no-create-info

Using Mysql 4.1.12a-nt I get no lock table commands and each row is a separate insert statement, as I would expect.

Using 4.1.18-nt I get lock table commands and all rows are inserted as a single insert statement (per table). How can I turn the lock table output off, is this something that is specified as a default somewhere ?

View Replies !   View Related
Import Of Old MySQL Dump With Same Names
I dumped mySQL to a file, and want to IMPORT it to a new location (other host.
I have the mySQL db already and it have the same fields/names in it, but I want to import the old ones (use them instead, because it contains text and info)

When I run the RUn Quierys in mySQLAdmin I get error: allredy exist.
Do I have to delete the existing first? how do I empty it then?

View Replies !   View Related
Mysql Dump Table Order
How does mysql order the tables in the file that it creates? Is is it by the order the tables were created, by alphabetic order? can I specify an order by giving the table names in the command line?

View Replies !   View Related
MySQL Dump Is Not Allowing Application To Run
I am creating a backup once per day automatically. The current size of the file is around 4.1 Gig uncompressed. The command that I use is as follows:
mysqldump --opt -q -R -u username-p'passwd' dbname | gzip > /filepath/$(date +%F).sql.gz

This takes around 25 - 30 minutes to fully backup the database. The problem that I have seen is that while this backup is occurring I cannot access my JBoss application. Oddly enough, I tried to access the database directly and everything is working fine, but any other remote user cannot access the database.

I want to know a couple of things:
1) Is my backup command optimized or is there something else I can add to make it faster. Now I do need to backup the data, table structure, stored procedures, etc.
2) How can I conduct a backup that is more efficient where it does not interfere with the remote users?

View Replies !   View Related
Dump .csv Data In Mysql Table
hI - I AM A ROOKI IN MYSQL - please help - here is my problem:

I intigated PHPLIST - open source marketing mail client for PHP that uses MYSSQL - I have been trying to upload my list of contacts into the client but had no luck or support for PHPLIST - my prroblem is as follows:

I created a DB table with 8 rows (ID, first, last, email, address, state, zip, birthdate) - I have 80,000 records in excel spreqadsheet which I saved as .csv and I wish to import / dump the data into the db table) each time I tried to do that I go bunch of errors -- my qustions are as follows:

First - anyonme one out there knows anything about phplist or moreless how can I creae a a table that I can move my records to

second, when I creae an ID -- I use auto_increment - would that apply when you do data dump using PHPadmin then Run SQL query - paste your csv data you copied from note pad++ - or shall I create my own ID's

Please help - I need to send my xmas cards - and invites for our annual party - hey if you are in Chicago you are welcome to join us.

View Replies !   View Related
MySQL Dump Not Working Correctly
I have a table in MySQL. nightly, the table is dumped (structure and data) and imported into a different database. it has been working fine like that for 3+ yrs. I recently added a new column. i populated it w/ values. the rest of the dump goes correctly, but no matter what, it will not dump this column's values.
in the dump it will just show empty braces.

The columns structure is set to DEFAULT NULL VARCHAR(50). I know im probably missing something, im not a database expert by any stretch.

View Replies !   View Related
Can't Import Dump Files In Mysql 5
I apologize upfront if this is common knowledge. I've searched for quite a while and found nothing concrete.

Using phpmyadmin 2.6.4-pl4
MySQL 4.0.23-nt
php 4.4.4

When I export and make a sql file, I cannot import the data using this setup:

phpmyadmin 2.6.4-pl4
MySQL 5.0.24a-community-nt
php 4.4.4


Get "No SQL query!" message through phpmyadmin when I import the .sql file. If I cut and paste out the create table or insert text it works, but that takes forever. If I copy the data files to the data folder everything works in mysql 5.

The sql files I've tried have been from 2-4 mbs. My backup dumps are 80 mbs though and obviously worried about restoring backups. Is there something I missed when upgrading? I pretty much copied off my data, uninstalled mysql 4 and installed mysql 5. Not in strict mode. Dataserver is in another location so can't always go copy the files off manually. Thanks for any help.

View Replies !   View Related
Import Dump From Unix Mysql To Windows Mysql
I am trying to load a dump from a MySQL database on my ISP's server to my development environment on a Win 2K machine (running MySQL). When I run the mysql command to run the load script, MySQL gives the following complaint:

"ERROR 1064 at line 21: You have an error in your SQL syntax. Check the manual t
hat corresponds to your MySQL server version for the right syntax to use near 'D
EFAULT CHARSET=latin1' at line 7"

The dump from the ISP's server is created using mysqldump. The ISP is running MySQL 4.1.20. My development environment is MySQL 4.0.26. I have no problem loading dumps made from my development environment usng phpmyadmin.

View Replies !   View Related
MySql Hangs When Building/piping From A Dump.
I'm trying to update my local copy of a live database to match a recent dump: Here's what I'm doing, in Windows XP, (from command prompt):

-----
cmd> mysql --user=myuser --password=mypassword
mysql> drop database mydb;
mysql> create database mydb;
mysql> use mydb;
mysql> exit
cmd> mysql --user=myuser --password=mypassword mydb < backup.sql
-----

The query hangs at the 32nd table, which has about 57000 rows with blobs of up to about 9kb. <- I presume this is part of the problem...

I have tried everything I can think of, including reinstalling mySql server and query browser. I have also added the following line into my my.ini file, which is definately the one that is read, I have checked: (in the [mysqld] section)

max_heap_table_size=1073741824

I'm really confused, as up until last week I was able to build my database from a backup with no problems, even through an Ant build with Eclipse.

View Replies !   View Related
PhpMyAdmin Dump On Local MySQL Administrator/ Query Browser
Ok I give in, I cannot get data obtained from phpMyAdmin into my local database at all! I've tried:

- Saving export as .SQL file and restoring using MySQL Administrator but I get a message that the file was not created using MySQL Administrator.

- I've tried doing a table with data dump and using that SQL query in MySQL Query Browser but it only inserts a few rows instead of all 1050.

What am I doing wrong?? I can't seem to find much info on this particular problem. I want to manipulate data locally instead of over a slow network connection as my queries are getting pretty complex...

View Replies !   View Related
Importing Xml Into Mysql
I want to import a xml file into a mysql database. My xml file look like that:
-<root>
<dir for="informatie" name="root">
<dir name="Informatie generals" subtitle="opening .." prio="3">
<item id=195 accepted="true" prio="7" lastupdate="3DDB58D" lasteditor="john">
<title> Open a address</titel>
<datumin>06-02-2003</datumin>
<body>
<!CDATA[ <strong> Is that my body file ... ]]>
</body>
</item>
<item id=196 accepted="true" prio="7" lastupdate="3DDB58D" lasteditor="john">
<title> Open a address</titel>
<datumin>06-02-2003</datumin>
<body>
<!CDATA[ <strong> Is that my body file ... ]]>
</body>
</item>
</dir>
</dir>
.....................
</root>

I want import this data like that:

data from <dir> I want to put into a table "directories" with fields: id, id_subdir, name, description...
and data from <item> into another table "items" with fields: id, id_dir, name, description, body, date_in, date_out .

View Replies !   View Related
Importing To Mysql
I have 2 text files in comma delimited format. One has customer numbers and one has corresponding items.

I want to import this into a new database that I have created. I want to be able to match the customer number to items from the text files but I want my new db to assign auto numbers to the customer and items. customer and items are separate tables in my new db.

View Replies !   View Related
Importing Cvs Into Mysql
i downloaded the freebie geoip database from maxmind but this comes in csv format. phpmyadmin only accepts sql files for import.

im probably overlooking something ... ?

View Replies !   View Related
Importing MySQL In MS Access
I'm building a shell script that store information in a MySQL 5.0
database. One of the data I store in the table is a text file. I use a
BLOB type for this text data.

If I try to import it in MS Access 2002 the BLOB column is converted
to a OLE type, but when I try to open it in access I get this error:

"A problem occurred while Miscrosoft Access was communicating with the
OLE server or ActiveX Control. Close the OLE server and restart it
outside of Microsoft Access. Then try the original operation again in
Microsoft Access."

I know that it's because MS access doesn't know what type of object it
is and with which program it should open it. But I don't know how I can
tell access the type of object it is. Should I create a module to
handle these objects? I'm new to access databases so I don't know where
I should start. If someone has any tips or codes I should use please le
me know.

Should I use another type instead of BLOB?

View Replies !   View Related
Error Importing Old Mysql Db
I am using mysql 5 and trying to import a database from version 4. But it keeps on giving me erros about invalid dates (e.g 2004-04-31) and Error 1265 (data truncated for Column X at row 1) I know it is some settings problem but don't know where to make changes.

View Replies !   View Related
Importing Access To MySQL
I have a site that I want to change over from ASP / Access to a PHP / MySQL platform. My only issue is that the client uploads a new version of the Access DB every few weeks. I don't think they'd be able to upload it in any other format... so I'd need a way to import the .mdb file into MySQL.

View Replies !   View Related
Importing .DBF File Into MYSQL
I'm having a file in Foxpro dbf file format which I want to import in MYSQL database which is remotely located. Is there any syntax which directly imports a dbf file into MYSQL or I'll have to convert it first into a flat file and then import.

View Replies !   View Related
Importing MySQL Data
I have a content management system which contains news, events, etc. for churches. I am able to easily extract data into an email newsletter, but I don't know how to make the same information availble in print.
Can someone recommend a program or method that will give me a way to implement my data into a printable, preformatted newsletter? I am trying to give church members a way to update their website and newsletters (email and print) without having to cut and paste into three different applications.

View Replies !   View Related
Mysql Importing Problem
I have a invision power board forums , i want to move a new host of course with my databse but i have numbers infront of everytable ( auto installer installed my forums ) now i do everything correct i export database then import to new host i install my board everything seems okay i get no error but when i view my forums no posts no members nothing is there .Do you know what problem is ? please help some people tried but they dont know what causing this

View Replies !   View Related
Importing Csv Into Mysql Table
I am having some difficulties importing a long csv file into a mysql database using PHPmyadmin.The csv file has 2 columns, prodcode and product_quantity. my csv file has 2 columns in it. When I upload it normally comes up with an error at about line 2000. if I then clear everything before the line I can normally input 8000 or so. The file is 10000 lines long so I normally have to do it in 3 sections.an example of the data in the fields are prodecode = TSd45 and product_quantity = 9
So the data in the fields are not large. There is nothing in the lines that would cause it to cause an error,

View Replies !   View Related
Importing Data To MySQL
Hey people. Well, obviously I am a newbie, so please be gentle. Basically my problem is this. I have an Access 2003 database and MySQL version 3.23.53 and I want to import the data into MySQL from Access. There are steps from there, such as transferring that data onto a replica MySQL database on a webserver (that uses 3.23.53, hence I am using it too), so I can mess around with it from there. I know you guys will probably spurn me for talking about MS SQL, but I sort of knew where I was with that, scheduled DTS packages and all that allowed me to automate my process. Does MySQL have a similar thing? Sorry for so many questions at once, and thanks in advance.

Oh, I'm using a Windows system and I'm not particularly familiar with Linux, so please make any instructions easy to follow. Although I'm using windows and I think the server has phpAdmin for an interface. If someone knows how to go from MSSQL to MySQL that will work too (particularly if it means I can schedule a DTS). That way, I can import Access to MS SQL and then to MySQL.

View Replies !   View Related
Importing Dates Into MYSQL
I have a bunch of data to import into MySQl. One column is birthdate, stored (in Excel) as 10/11/1981 (example). When I import it into MySQl, it shows up as 0000-00-00 (hundreds of rows of this!)

Even in OpenOffice, which lets me format the date as 1981-10-11, it still doesn't import to MySQL (still shows up as all zeros). Is it like others, do I need to "encapsulate" the date (like around # signs)?

IF I set the MySQL field date to text, they import wonderfully, but the second I set that field back to date, they all go to zeros!

View Replies !   View Related
Importing Mysql Db Into Ms Visio
i am trying to import my mysql db into ms visio and i am having rather a hard time either visio starts freezing up on me or i get a error message saying "microsoft office visio cannot connect to this data source": Error 8000ffff: Catastrophic failure. i have the most recent odbc mysql driver.

View Replies !   View Related
Importing SAV File Into MySQL
I intend to import a .sav file into a table created in MySQL Server 5.0. I tried using the LOAD DATA command, but it copied only 575 out of the 14796 rows. Following is the command I used:

Load data local infile 'F:/new folder/known university list download 27.01.09/Database SPSS Tables/Revised Tables/Final known university list 20_01_09 Revised.sav, into table unilist;

On querying the table, the copied rows only returned NULL values. It seemed as though the copied rows were empty.

FYI, there is no primary key constraint assigned, as there are lot of duplicate values within the table.

View Replies !   View Related
Error Importing MYSQL
I backup a database from a forum, and one day later I wanted to restore it, but I always have the same error, that I couldn't find a solution:

"Msg 102, Level 15, State 1, Line 12
Incorrect syntax near '`'."

What I could understand, that error is generated by this:
"CREATE DATABASE `forumik` DEFAULT CHARACTER SET latin1 COLLATE utf8_swedish_ci;
USE `forumik`;"

View Replies !   View Related
Importing CSV File Into MySQL 4.1.7
I am trying to import a file called info.csv into MySQL 4.1.7 using phpMyAdmin 2.6.0-pl3. I created a table called mail, with 2 columns (e-mail Subscribe_to_Newsletter), what is the best way to get the data into it?

View Replies !   View Related
Importing A Large Db To Mysql
I have a DB creation script of size about 50MB.
I cannot seem to load it to the mysql db I have installed at home (I have a P3 , 512MB RAM), as my computer runs out of memory.

Is there a way to force mysql (ver 5.0) to flush the memory from time to time to the HD? Is there a way to break the script to several small sub-scripts?

View Replies !   View Related
IMPORTING CSV INTO MYSQL DATABASE
I'm hoping for some help importing a .CSV file into a MySQL database. I'm getting this error message:

ERROR 1062 (23000): Duplicate Entry '4' for key 1

I've tried it both by using PhpMyAdmin and the MySQL command line prompt and no luck either way. I don't see how it could say the entries are duplicates since the data is different. Below is the error message I get when I'm trying to use PhpMyAdmin to import the data: Code:

View Replies !   View Related
Importing Data In MySQL
I just installed WAMP & using PHPMyAdmin to handle MySQL I created a table named "tbl1" in the database "db1" Then I made 2 fields "unam" & "upwd" Now tell me how can I add records to these field using PHPMyAdmin? Also tell me how can I import Excel file or CSV file or TEXT file in MySQL?

View Replies !   View Related
Importing Data Into MySQL
I've got a question about importing Microsoft Excel data (saved as a .csv) into a MySQL table. The spreadsheet in question is a record of a list of books with approximately 5000 records. The columns in Excel are as follows:
Title, Author, Publisher, Condition, Format, Price
The corresponding fields in the MySQL database are:
title, publisher_id, condition_id, format_id, price
The first question I have is about the foreign keys. All of the publisher, condition and format information is stored in a seperate table and linked to the main books table. How I am thinking of going about the insert is to enter in all the relevant publisher data to the database. Work out the id in the publisher table and do a simple search and replace in the excel file to insert the id in place of the publisher. I'll do the same for condition and format. (For those of you who think its crazy, because of the data involved it won't take much time). So that when I insert the data then the ids will be inserted. Is this a valid way of going about it?
There are two problems that arise however. The first is that the author information is stored as a many-to-many relationship as some books have more than one author. Is there any possible way of inserting the data from the .csv easily?
The second is that I would like mysql to assign automatic unique id values in an id column that would function as my primary key. No such data exists. Can this be done when importing the data - that mysql automatically assigns an id?
Any help on the above queries would be greatly appreciated. Thanks for having a look!

View Replies !   View Related
Importing A Database PC->MySql
I want to import a database from my PC to a MySQL program I just set up on my new Apple laptop. I downloaded MySQL's GUI Tools and installed it on both my PC and Mac. I then backed up the database I want to import, converting it to a .mbp file, which I then copied to my Mac.

Now I'm trying to figure out how to do the next step - import Backup.mbp into my new MySQL program. I thought perhaps I could import it with phpMyAdmin, similar to importing SQL files, but that didn't work.

What's the easiest way to do it? Do I need to recreate the database first, then import the .mbp file into it? Or is there a way to just import the .mbp file into MySQL, and it will automatically replicate the database, along with all the tables it contains?

View Replies !   View Related

Copyright 2005-08 www.BigResource.com, All rights reserved