Dev's Weblog

We have moved to sysdbaonline.com

MySQL Replication

November 28, 2008 Posted by sdevang | MySQL | | No Comments Yet

MySQL DUMP

Command to backup all the MySQL database in single shot is ,

$mysqldump -u root -p –all-databases > alldatabases.sql

Command to restore the MySQL database is ,

( Please make sure that you have database created before you can restore the data )

$mysql -u root -p database_to_restore < alldatabases.sql

September 3, 2008 Posted by sdevang | MySQL | | No Comments Yet