mysql 启动报错

当遇到MySQL启动报错,提示InnoDB数据库页可能损坏时,可以通过设置`innodb_force_recovery`来跳过恢复步骤。根据错误级别,可设置1到6的值,然后备份数据,清除数据文件,并重新初始化MySQL。在修复过程中需要注意避免写操作,并修改`innodb_purge_thread`为0。完成备份、数据清理和初始化后,导入备份数据并重新设置密码,允许远程连接。
摘要由CSDN通过智能技术生成

InnoDB: Page may be an index page where index id is 8005
InnoDB: Database page corruption on disk or a failed
InnoDB: file read of page 84692.
InnoDB: You may have to recover from a backup.
InnoDB: It is also possible that your operating
InnoDB: system has corrupted its own file cache
InnoDB: and rebooting your computer removes the
InnoDB: error.
InnoDB: If the corrupt page is an index page
InnoDB: you can also try to fix the corruption
InnoDB: by dumping, dropping, and reimporting
InnoDB: the corrupt table. You can use CHECK
InnoDB: TABLE to scan your table for corruption.
InnoDB: See also http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
InnoDB: Ending processing because of a corrupt database page.

page 已经存在损坏,需要修改innodb_force_recovery=1(通常设置为1),使mysqld跳过恢复步骤,启动后马上逻辑导出数据,重新初始化后再导入。

innodb_force_r

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值