zoukankan      html  css  js  c++  java
  • 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 statusG,找到Exec_Master_Log_Pos
    然后在主库处执行:show binlog events in ' mysql-bin.0000xx' from $Exec_Master_Log_Pos limit 2G 找到主库对应的binlog位置和 info的信息

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

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

  • 相关阅读:
    _#【命名】 / _
    _#【插件】
    _#【命名】样式类
    linux dd命令
    python urllib2和urllib的区别
    hadoop的find
    hadoop的fs基本命令
    /etc/profile和 . profile 文件
    广告sdk
    linux下查找文件的常用命令
  • 原文地址:https://www.cnblogs.com/hongfeng2019/p/11871840.html
Copyright © 2011-2022 走看看