Created
January 26, 2011 20:32
-
-
Save andersonsp/797393 to your computer and use it in GitHub Desktop.
duplicate a mysql database
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
mysqladmin create DB_name -u DB_user --password=DB_pass && \ | |
mysqldump -u DB_user --password=DB_pass DB_name | mysql -u DB_user --password=DB_pass -h DB_host DB_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment