1.备份数据库db_test
/opt/mysql5729/bin/mysqldump -h localhost -uroot -pmysql -P13306 -S /opt/mysql5729/mysql.sock db_vaccination --default-character-set=utf8 --set-gtid-purged=OFF --skip-tz-utc --skip-disable-keys --skip-add-locks --single-transaction --master-data=2>/tmp/mydumptest.sql
2.找到备份开始的位置
[root@localhost tmp]# grep -i 'CHANGE MASTER' /tmp/mydumptest.sql
-- CHANGE MASTER TO MASTER_LOG_FILE='binlog.000004', MASTER_LOG_POS=49300421;