关注

昨晚睡觉之前发现自己firefox的fxa崩了,今天折腾了一上午搞好了。问题原因是mysql的undo log损坏导致mysql启动失败,具体报错是:
'Trying to access page number xxxxxxxx in space xxxxxxxx, space name innodb_undo_001, which is outside the tablespace bounds. Byte offset 0, len xxxxx, i/o type read.'
mysql把innodb_force_recovery拉到6都启动不了,我本来都没多想以为是跟以前postgresql一样是文件系统有问题,直接进rescue跑fsck去了,结果跑下来压根就没问题。搜了半天找到的办法只有借助第三方脚本把数据尽量dump出来然后删除损坏的表再重建,想想实在麻烦,查了一下innodb_undo是干啥的,感觉可以删就直接把undo_001文件删了,删完就好了。

登录以加入对话
Lilymagic

Lilymagic,百合爱好者集散中心。基于开源软件Mastodon。