当前位置: 代码迷 >> 综合 >> nnoDB: ./ib_logfile0 can't be opened in read-write mode
  详细解决方案

nnoDB: ./ib_logfile0 can't be opened in read-write mode

热度:14   发布时间:2023-12-19 16:25:16.0


报错日志:在使用innobackup 远程备份后,apply log 时遇到的报错

2018-02-28 18:21:41 26721 [Note] InnoDB: Completed initialization of buffer pool

2018-02-28 18:21:41 26721 [ERROR]  InnoDB: ./ib_logfile0 can't be opened in read-write mode
2018-02-28 18:21:41 26721 [ERROR] Plugin 'InnoDB' init function returned error.
2018-02-28 18:21:41 26721 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2018-02-28 18:21:41 26721 [ERROR] Unknown/unsupported storage engine: InnoDB

2018-02-28 18:21:41 26721 [ERROR] Aborting

解决方法:

ib_logfile0  文件权限是否正确;

data_dir 目录权限,属组是否正确;

如果在使用chown mysql:mysql  chmod 777 依然无效时;

可以删除ib_logfile0/1 日志文件,因为是刚刚prepare后生成的文件,日志文件中不包含业务数据;

再次使用mysqld_safe 启动mysql时会重新生成ib_logfile* 日志文件


  相关解决方案