Copy MYSQL database from one machine to another

How to copy database from one machine to another machine in MYSQL? Explain with an example?

Questions by d.sreehari

Showing Answers 1 - 6 of 6 Answers

soorajVs

  • Mar 6th, 2008
 

Make a dump of the database to be copied : mysqldump -u root -p --databases --opt MyDatabase > MyDatabase.sql
Copy MyDatabase.sql to the second machine
Import the database to MysSQL server : mysql -u root -p < MyDatabase.sql


  Was this answer useful?  Yes

bagya

  • Jul 31st, 2009
 

select * from information_schema.tables where TABLE_SCHEMA='test 'into outfile'D:backuptest_backup.sql';

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions