Created
August 24, 2011 09:38
-
-
Save mtrl/1167685 to your computer and use it in GitHub Desktop.
mysqldump db to db copy
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
Copy database and schema | |
--- | |
mysqldump -u [user] -p[password] -h localhost --databases [databases] -Ccqf --no-data | mysql -u [user] -p -h [host] -P 3306 | |
Copy data | |
--- | |
mysqldump -u [user] -p[password] -h localhost --databases [databases] -Ccqf --no-create-db --no-create-info | mysql -u [user] -p -h [host] -P 3306 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment