Created
April 12, 2014 22:51
-
-
Save scottoffen/10560821 to your computer and use it in GitHub Desktop.
Backup and Restore MySQL Databases
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
mysqldump -u [username] -p [schema] > filename_yyyy.mm.dd.sql | |
mysql -u [username] -p [schema] < filename_yyyy.mm.dd.sql | |
-- You will be prompted to provide the password each time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment