Created
October 28, 2011 21:03
-
-
Save tricker/1323552 to your computer and use it in GitHub Desktop.
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 data to file | |
mysqldump -uroot -ppassword hornet > hornet-dump.sql | |
# Drop database schema | |
mysqladmin -uroot -ppassword –f drop hornet | |
# create empty database schema | |
mysqladmin –uroot –ppassword create hornet | |
# push dump file into new database schema | |
mysql -uroot -ppassword hornet < hornet-dump.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment