首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >MySQL 8复制

MySQL 8复制
EN

Database Administration用户
提问于 2022-03-28 12:51:21
回答 1查看 4K关注 0票数 2

我收到一条错误信息:协调员停止了,因为工人(S)中有错误(S)。最近的失败是: Worker 1在主日志mysql-bin.000001,end_log_pos 25883上执行“匿名”事务失败。有关此故障或其他(如果有的话)的详细信息,请参阅错误日志和/或performance_schema.replication_applier_status_by_worker表。

代码语言:javascript
运行
复制
mysql> show slave status \G
*************************** 1. row ***************************
               Slave_IO_State: Waiting for source to send event
                  Master_Host: 173.249.4.25
                  Master_User: master1
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File: mysql-bin.000010
          Read_Master_Log_Pos: 85083434
               Relay_Log_File: db-relay-bin.000002
                Relay_Log_Pos: 318
        Relay_Master_Log_File: mysql-bin.000001
             Slave_IO_Running: Yes
            Slave_SQL_Running: No
              Replicate_Do_DB: 
          Replicate_Ignore_DB: 
           Replicate_Do_Table: 
       Replicate_Ignore_Table: 
      Replicate_Wild_Do_Table: 
  Replicate_Wild_Ignore_Table: 
                   Last_Errno: 1032
                   Last_Error: 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.000001, end_log_pos 25883. See error log and/or performance_schema.replication_applier_status_by_worker table for more details about this failure or others, if any.
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 503
              Relay_Log_Space: 943477677
              Until_Condition: None
               Until_Log_File: 
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File: 
           Master_SSL_CA_Path: 
              Master_SSL_Cert: 
            Master_SSL_Cipher: 
               Master_SSL_Key: 
        Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 0
                Last_IO_Error: 
               Last_SQL_Errno: 1032
               Last_SQL_Error: 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.000001, end_log_pos 25883. See error log and/or performance_schema.replication_applier_status_by_worker table for more details about this failure or others, if any.
  Replicate_Ignore_Server_Ids: 
             Master_Server_Id: 1
                  Master_UUID: 5ccfd742-1a98-11e9-86f7-ac1f6b1dd75c
             Master_Info_File: mysql.slave_master_info
                    SQL_Delay: 0
          SQL_Remaining_Delay: NULL
      Slave_SQL_Running_State: 
           Master_Retry_Count: 86400
                  Master_Bind: 
      Last_IO_Error_Timestamp: 
     Last_SQL_Error_Timestamp: 220327 13:18:25
               Master_SSL_Crl: 
           Master_SSL_Crlpath: 
           Retrieved_Gtid_Set: 
            Executed_Gtid_Set: 
                Auto_Position: 0
         Replicate_Rewrite_DB: 
                 Channel_Name: 
           Master_TLS_Version: 
       Master_public_key_path: 
        Get_master_public_key: 0
            Network_Namespace: 
1 row in set, 1 warning (0.01 sec)

注意: Last_SQL_Error:协调员停止了,因为工人(S)中有错误(S)。最近的失败是: Worker 1在主日志mysql-bin.000001,end_log_pos 25883上执行“匿名”事务失败。有关此故障或其他(如果有的话)的详细信息,请参阅错误日志和/或performance_schema.replication_applier_status_by_worker table

EN

回答 1

Database Administration用户

发布于 2022-03-28 13:11:58

1.对主从数据使用pt-table-校验和工具。

2.跳过错误

mysql>停止从;

mysql> set @@session.gtid_next='xxxxx';

mysql>开始;mysql>提交;

mysql>集@@session.gtid_next=automatic;

mysql>启动从机;

mysql>显示从状态\G

票数 0
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/310259

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档