Created
February 12, 2020 02:19
-
-
Save 7castle/a8f2aa0248ab2fda9a17d25e2e8503ab to your computer and use it in GitHub Desktop.
mysqldump for replica
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
sudo mysqldump \ | |
--databases <database_name> \ | |
--master-data=2 \ | |
--single-transaction \ | |
--order-by-primary \ | |
-r backup.sql \ | |
-u <local_user> \ | |
-p <password> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment