udb主从不同步排错

Last_SQL_Errno:1032
Last_SQL_Error:Could not execute Update_rows event on table oride_data.data_system_config; Can't find record in 'data_system_config', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.001651, end_log_pos 190104401
可以直接跳过此错误

 

5.7的话是GTID的 用着个跳不过去的。您参考这个跳过下
先在从库udb-2dinxge2 执行 show slave status\G,找到Exec_Master_Log_Pos
然后在主库处执行:show binlog events in ' mysql-bin.0000xx' from $Exec_Master_Log_Pos limit 2\G 找到主库对应的binlog位置和 info的信息

 

 

最后回到从库,stop slave; 执行 主库binlog位置info的 set ;begin; commit;SET SESSION GTID_NEXT = AUTOMATIC; start slave;

 

 

 GTID的话是如上跳过的。如果执行后仍无法跳过,我们尝试重做下。重做的话需要修改下非事务表的

 

posted on 2019-11-16 14:59  锋锋2019  阅读(241)  评论(0编辑  收藏  举报

导航