Created
December 3, 2010 00:10
-
-
Save nylen/726354 to your computer and use it in GitHub Desktop.
MySQL backup and restore
This file contains 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
# To do a backup: | |
mysqldump -uroot -pYourMySQLPassword --add-drop-database -B pfc_development > pfc_development-backup.sql | |
# To restore the same backup: | |
mysql -uroot -pYourMySQLPassword < pfc_development-backup.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment