If your two databases are on the same MySQL server, then you should be able to use a statement like
INSERT INTO destdb.desttable
SELECT * FROM sourcedb.sourcetable;
It looks like you shouldn't have to do anything special to make the transfer go smoothly.
If your databases are on separate servers, then it will require you to dump the data into text files, move them to the destination server and make a connection to import them. The commands look like:
SELECT * FROM sourcedb.sourcetable INTO OUTFILE 'C:\\datafile.dat';
move the data file to the destination server
connect to the server
LOAD DATA INFILE 'C:\\datafile.dat' INTO TABLE destdb.desttable;
Of course, if you issue "USE sourcedb;" or "USE destdb;" then you won't need to prefix the table names with the database names.
Quote:
Originally posted by mahanti
Some of the most frequent differences between 2 schemas are like below...
|