Mysql 8.0.28复制从属服务器已创建多次。他开始犯以下错误。即使我把停止从程序和启动从程序做了,同样的错误仍然存在。如何让奴隶站起来?
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 , end_log_pos 345612577. See error log and/or performance_schema.replication_applier_status_by_worker table for more details about this failure or others, if any.
可能是由于导入数据,然后启动复制导致状态不一致。也可能是权限问题之类的。
要查看尝试了什么,你应该这样做:
mysqlbinlog --read-from-remote-server -h <masterip> -u replicateuser <binfile> --verbose --base64-output=DECODE-ROWS -p|grep -A10 -B10 345612577
这将为您提供有关导致问题的查询的信息。