Created
November 19, 2012 09:28
-
-
Save jiceb/4109821 to your computer and use it in GitHub Desktop.
MySQL Dump All Databases and Create (or Recreate) them on Import
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
| # export | |
| mysqldump -u root -p --all-databases > all_dbs.sql | |
| # import | |
| mysql -u root -p < all_dbs.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment