Last_SQL_Error: Could not execute Update_rows event

踩吭:
主从同步错误 :
Last_SQL_Error: Could not execute Update_rows event on table db_name.table_name; Can't find record in 'table_name', Error_code: 1032; handler error HA_ERR_END_OF_FILE; the event's master log mysql-bin.000106, end_log_pos 1057304453
去查看那个sql执行到的位置sql语句,是一个update
在主库和从库上都能找到这条记录。
这就怪了,还报找不到这个记录:
只能去找 万能的网络了。

ROW Format Replication Can't Find Record with Floating Point Fields
我就找到这个文档,查看了一下,和我的情况很匹配.
1 binlog_foramt=row
2 表中有float字段
3 版本是5.5

总结原因是:
对float或double类型的 使用binlog_format=row时 出现了这个问题:
解决方法 :
1 使用DECIMAL 替代float,double
2 还原从库时不使用逻辑备份的,而使用物理备份
3 加主键
请使用浏览器的分享功能分享到微信等