宝塔面板启动Mysql数据库启动不起来,并且日志报:Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed。
Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed,从详细错误日志里面发现创建log file创建失败。
解决方法很简单
进入mysql数据路径/www/server/data/(该路径为宝塔安装默认的数据路径,其他的请看后面。)
rm -rf /www/server/data/ib_logfile*
如果你不是宝塔面板安装的,也遇见了这个问题,那就搜索找找目录吧:
find / -name 'ib_logfile*'
找到以后也是用 rm -rf ib_logfile* 进行删除。
删的时候一定要注意
然后重启数据库,看看是不是就解决了。
参考
https://blog.csdn.net/Msln1995/article/details/125994234
https://blog.csdn.net/walykyy/article/details/104291451
https://blog.csdn.net/weixin_34343308/article/details/91547727