MySQL备库同步时报Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND

MySQL主备时,备库同步时报如下错误:

Could not execute Update_rows event on table oa.bui_bill_sum; Can't find record in 'bui_bill_sum', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.000138, end_log_pos 160051747

解决方法:

备库中执行如下SQL脚本

STOP SLAVE; 
SET GLOBAL sql_slave_skip_counter =1; #表示跳过一步错误,后面的数字可变 
START SLAVE;  

猜你喜欢

转载自blog.csdn.net/jlq_diligence/article/details/88551764