时间:2021-07-01 10:21:17 帮助过:22人阅读
如果未同步,在从库上执行下列操作:
stop slave;
#表示跳过一步错误,后面的数字可变
set global sql_slave_skip_counter =1;
start slave;
show slave status;
报错信息:Coordinator stopped because there were error(s) in the worker(s). The most recent failure being: Worker 1 failed executing transaction ‘ANONYMOUS‘ at master log mysql-bin.001045, end_log_pos 454708145. See error log and/or performance_schema.replication_applier_status_by_worker table for more details about this failure or others, if any.
报错是1032,没有找到要操作的记录,有时候会出这个报错,原因是开启了并行复制,先关闭并行复制 重启复制就可以了,然后再打开并行复制。
解决方法
stop slave;
set global slave_parallel_workers=0;
start slave;
恢复后,可以改回来或者保持不修改
stop slave;
set global slave_parallel_workers=8;
start slave;
MySQL主从不同步
标签:tran slist start 没有 原因 nsa about lis ati