Created
February 20, 2014 13:58
-
-
Save laszlomiklosik/9114156 to your computer and use it in GitHub Desktop.
mysql dump and restore database from command line
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
#1. dump | |
mysqldump -u root db_name > dump_name.sql | |
#2. restore | |
mysql -u root -p db_name < dump_name.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment