码迷,mamicode.com
首页 > 其他好文 > 详细

Last_IO_Errno: 1032

时间:2017-09-14 00:40:55      阅读:332      评论:0      收藏:0      [点我收藏+]

标签:sql   nbsp   ase   mysql-bin   如何   找不到   -o   int   tput   

(一):更新找不到记录 1032
 
Last_SQL_Errno: 1032
               Last_SQL_Error: Could not execute Update_rows event on table lgj3306.t01; Can‘t find record in ‘t01‘, Error_code: 1032; handler error HA_ERR_END_OF_FILE; the event‘s master log mysql-bin.000001, end_log_pos1940
 
如何找出这条记录:
可以从报错信息找出如下信息
end_log_pos 1940
Exec_master_log_Pos:1696 
binglog文件是:mysql-bin.000001
mysqlbinlog -v --base64-output=decode-rows --start-position=1696 --stop-position=1940 mysql-bin.000001
 
1032 update错误处理难点,去主库上获取出来主键的值。
 
解决办法:
在从库插入找不到的记录,如下范例:
set sql_log_bin=0;
insert into  xxx;
set sql_log_bin=1;
 
 
 
(二):delete找不到记录  1032
报错如下所示:
 Last_SQL_Errno: 1032
               Last_SQL_Error: Could not execute Delete_rows event on table lgj3306.t01; Can‘t find record in ‘t01‘, Error_code: 1032; handler error HA_ERR_END_OF_FILE; the event‘s master log mysql-bin.000001, end_log_pos 1015
 
方法一:在从库手工伪造这条数据。
set sql_log_bin=0;
insert into xxx;  
set sql_log_bin=1;
 
方法二:跳过错误(只有这种错误是能跳过)
步骤略。

Last_IO_Errno: 1032

标签:sql   nbsp   ase   mysql-bin   如何   找不到   -o   int   tput   

原文地址:http://www.cnblogs.com/liang545621/p/7518406.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!