1.从库停止备份
stop slave;
2.主库备份
mysqldump -uroot -p'1qaz@WSX' -h$ip --single-transaction --triggers --set-gtid-purged=OFF --routines --events --master-data=2 rainbowchat_pro missu_oprlog > /tmp/M_equiphisData.sql
3.从库忽略某张表开始同步
CHANGE REPLICATION FILTER REPLICATE_WILD_IGNORE_TABLE = ('rainbowchat_pro.missu_oprlog');
4.从库:开启从库知道执行到 指定 master_file 与 master_Postion
从主库获取需要同步到的位置点
start slave until MASTER_LOG_FILE='mysql-bin.001584', MASTER_LOG_POS=409731622;
5. 从库导入数据
source /root/missu_oprlog.sql;
6.从库去掉忽略,开始真正的主从同步
stop slave;
CHANGE REPLICATION FILTER REPLICATE_WILD_IGNORE_TABLE = ();
start slave;
标签:同步,slave,--,备份,忽略,missu,从库,主从 From: https://www.cnblogs.com/liuxiuxiu/p/16730559.html