innodb 表损坏如何修复
#####################
mysql innodb 表损坏_MySQL数据库INNODB表损坏修复处理过程分享
突然收到MysqL报警,从库的数据库挂了,一直在不停的重启,打开错误日志,发现有张表坏了。innodb表损坏不能通过repair table 等修复myisam的命令操作。现在记录下解决过程,下次遇到就不会这么手忙脚乱了。
处理过程:
一遇到报警之后,直接打开错误日志,里面的信息:InnoDB: Database page corruption on disk or a Failed
InnoDB: file read of page 30506.
InnoDB: You may have to recover from a backup.
130509 20:33:48 InnoDB: Page dump in ascii and hex (16384 bytes):
\##很多十六进制的代码
……
……
InnoDB: End of page dump
130509 20:37:34 InnoDB: Page checksum 1958578898,prior-to-4.0.14-form checksum 3765017239
InnoDB: stored checksum 3904709694,prior-to-4.0.14-form stored checksum 3765017239
InnoDB: Page lsn 5 614270220,low 4 bytes of lsn at page end 614270220
InnoDB: Page number (if stored to page already) 30506,InnoDB: space id (if created with >= MysqL-4.1.1 and stored already) 19
InnoDB: Page may be an index page where index id