Last active
November 27, 2020 21:43
-
-
Save juliobitencourt/f3e9686b3e5b7614a6b88560954e2947 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
mysqldump --set-gtid-purged=OFF -h host -u user -p database > database.sql | |
mysql -h host -u user -p database < database.sql | |
# Clone a database | |
mysqldump db_name | mysql new_db_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment