Last active
October 25, 2017 16:25
-
-
Save ssskip/d121b04e76c013e82933cb69faa38659 to your computer and use it in GitHub Desktop.
mysql dump on slave
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
mysqldump -u xxx -p -Qce -R --apply-slave-statements --single-transaction —tz-utc --flush-privileges —master-data=2 --max-allowed-packet=900M --databases xxx|pv|gzip > dump.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment