[ERROR] InnoDB: Trying to access page number 7 in space 957, space name XXX which is outside the tab...

早上,测试说演示环境mysql老实断开重连,一update就挂,经查日志,有如下异常:

2017-04-05T23:13:01.729250+08:00 17065 [ERROR] InnoDB: Trying to access page number 7 in space 957, space name db_rsk/tb_rsk_compliancecalcservice, which is outside the tablespace bounds. Byte offset 0, len 16
384, i/o type read. If you get this error at mysqld startup, please check that your my.cnf matches the ibdata files that you have in the MySQL server.
2017-04-05T23:13:01.729323+08:00 17065 [ERROR] InnoDB: Server exits.
2017-04-05T15:13:01.951492Z mysqld_safe Number of processes running now: 0
2017-04-05T15:13:01.966440Z mysqld_safe mysqld restarted

因为是演示环境,可以从其他环境恢复回来,故rm -rf db_rsk/tb_rsk_compliancecalcservice*后问题解决。

当然也可以通过innodb_force_recovery=N来启动,并export/恢复,只不过这样会花费更长时间。

所以,就mysql生产库而言,除了有backup之外,最好的方式是对于核心生产库使用raid盘,如果是ECS的话,做软raid。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值