centos死机导致mysql无法启动解决

  1. 3306端口没被占用
    2.查看日志 sudo cat /var/log/mysqld.log
    从错误日志来看,MySQL 启动失败的主要原因是 InnoDB 存储引擎的初始化失败。具体错误信息如下:
    复制
    [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 111575434 and the end 111575040.
    [ERROR] InnoDB: Plugin initialization aborted with error Generic error
    [ERROR] Plugin 'InnoDB' init function returned error.
    [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    Failed to initialize builtin plugins.
    这些错误表明 InnoDB 插件在初始化过程中遇到了问题,可能是由于 redo log 文件损坏或不完整导致的。

3.重置 InnoDB redo log 文件
如果 redo log 文件损坏,可以尝试删除现有的 redo log 文件并让 MySQL 重新创建它们。这将丢失所有未提交的事务,因此请谨慎操作。
sudo rm /var/lib/mysql/ib_logfile0 /var/lib/mysql/ib_logfile1

然后重新启动 MySQL 服务:
sudo systemctl start mysqld

posted @ 2025-01-21 16:17  自在现实  阅读(56)  评论(0)    收藏  举报