InnoDB: error in sec index entry update

MySQL的.eer错误日志中报了个错误,如下:
InnoDB: error in sec index entry update in
InnoDB: index `***idx` of table `***db`.`***tbl`
InnoDB: tuple DATA TUPLE: 2 fields;
 0: SQL NULL;
 1: len 4; hex 003a4b99; asc  :K ;;

InnoDB: record PHYSICAL RECORD: n_fields 2; compact format; info bits 0
 0: SQL NULL;
 1: len 4; hex 003a4174; asc  :At;;

TRANSACTION 5B0D26, ACTIVE 0 sec, process no 13587, OS thread id 1239374144 updating or deleting
mysql tables in use 1, locked 1
6 lock struct(s), heap size 1216, 3 row lock(s), undo log entries 3
MySQL thread id 9487, query id 43404284 192.168.1.1 ***user Updating
update ***tbl set ***column1=*** where ***column2=***

InnoDB: Submit a detailed bug report to http://bugs.mysql.com

对提示的***tbl表进行了检查:
mysql>check table ***tbl;
+-------------------------+-------+----------+----------+
| Table                   | Op    | Msg_type | Msg_text |
+-------------------------+-------+----------+----------+
| ***db.***tbl            | check | error    | Corrupt  |
+-------------------------+-------+----------+----------+
发现原来是表损坏了,很奇怪,表才建了不久,就出现了损坏,而且之前进行过一次optimize对表优化,难道是这个引起的,原因实在是搞不明白了
,只能重建表解决该问题:
alter table ***tbl engine=innodb;

注意啊,大表重建可能需要较长时间和双倍的空间。

参考:

http://bugs.mysql.com/bug.php?id=17937

http://bugs.mysql.com/bug.php?id=37364

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值