Created
December 9, 2013 15:55
-
-
Save nghuuphuoc/7874407 to your computer and use it in GitHub Desktop.
Backup and restore MySQL database
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
// Backup | |
$ mysqldump -u [username] -p [databasename] > [filename.sql] | |
Enter password: | |
// Restore | |
$ mysql -u [username] -p [databasename] < [filename.sql] | |
Enter password: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment