报错日志:在使用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 mode2018-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* 日志文件