Last_Error: Could not execute Update_rows event on table testdb.table; Can't find record in 'table', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.000252, end_log_pos 441796235
原因:主从数据不一致 解决办法:
mysql> set sql_slave_skip_counter=1;
如果就个别事务可以先跳过事务再手动同步数据。如果数据量大则只能重做备库!
错误号:1756
Last_Errno: 1756
Last_Error: ... The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state. A restart should restore consistency automatically, although using non-transactional storage for data or info tables or DDL queries could lead to problems. In such cases you have to examine your data (see documentation for details).
Last_Error: Worker 7 failed executing transaction '' at master log mysql-bin.000189, end_log_pos 398170585; Error 'When @@SESSION.GTID_NEXT is set to a GTID, you must explicitly set it to a different value after a COMMIT or ROLLBACK. Please check GTID_NEXT variable manual page for detailed explanation. Current @@SESSION.GTID_NEXT is '7d7ebcb4-4cb3-11e5-81ae-005056a35f72:198818971'.' on query. Default database: 'testdb'. Query: 'INSERT INTO table(unit_id, unit_name, unit_type, book_id, sort) VALUES ('130003002653462007003', '动:综合表演(火车来了)', 2, '130003002653462', '130003002653462007003')'
原因:不明,可能是BUG,偶尔遇到。 解决办法:
mysql> stop slave;start slave;
如果还不行的话就要重启Mysql实例:service mysqld restart
错误号:1236
Last_IO_Errno: 1236
Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from position > file size; the first event 'mysql-bin.000159' at 647052798, the last event read from '/data/log/mysql/mysql-bin.000159' at 4, the last byte read from '/data/log/mysql/mysql-bin.000159' at 4.'
解决办法:重新指定开始复制的日志位置
错误号:1594
Last_Errno: 1594
Last_Error: Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MySQL code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave.
错误号:1118
Last_Errno: 1118
Last_Error: Error 'Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.' on query. Default database: 'testdb'. Query: 'update table set content = '<span> </span> \n<p>\n <span style="font-family:宋体;font-size:16px;"><span>一、创设情境、激发兴趣</span></span> \n</p>\n<span> </span><span style="font-family:宋体;"><span style="font-size:16px;">1、结合具体生活情境,回顾认识质量单位千克、克、吨,进一步感受</span><span style="font-size:16px;">1</span><span style="font-size:16px;">千克、</span><span style="font-size:16px;">1</span><span style="font-size:16px;">克、</span><span style="font-size:16px;">1</span><span style="font-size:16px;">吨的实际质量。</span></span> \n<p style="color:#000000;font-family:"Times New Roman",serif;font-size:10.5pt;font-style:normal;font-weight:normal;">\n <sp
错误号:1755
Last_Errno: 1755
Last_Error: Cannot execute the current event group in the parallel mode. Encountered event Update_rows, relay-log name /data/mysql2/log/mysqld-relay-bin.000125, position 354 which prevents execution of this event group in parallel mode. Reason: the event is a part of a group that is unsupported in the parallel execution mode.
Last_Error: Slave SQL thread retried transaction 10 time(s) in vain, giving up. Consider raising the value of the slave_transaction_retries variable.
原因:slave上的操作被lock阻塞 解决:重启slave
错误号:1864
Last_Errno: 1864
Last_Error: Cannot schedule event Rows_query, relay-log name /log/mysql/mysqld-relay-bin.000819, position 165048918 to Worker thread because its size 16777219 exceeds 16777216 of slave_pending_jobs_size_max.