Created
February 15, 2012 09:13
-
-
Save rajraj/1834639 to your computer and use it in GitHub Desktop.
Backup and Restore MySql Database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backup Mysql database | |
$ mysqldump -u root -p contracts_production > contracts.sql | |
# Restore Mysql database from sql file | |
$ mysql -u root -p contracts_production < contracts.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment