mysql--容器无法启动
Posted 小陆同学
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql--容器无法启动相关的知识,希望对你有一定的参考价值。
mysql服务总是在重启状态
查看mysql容器日志
# docker logs 镜像名称
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/error-creating-innodb.html
2020-02-28 04:17:33 1 [ERROR] Plugin \'InnoDB\' init function returned error.
2020-02-28 04:17:33 1 [ERROR] Plugin \'InnoDB\' registration as a STORAGE ENGINE failed.
2020-02-28 04:17:33 1 [ERROR] Unknown/unsupported storage engine: InnoDB
2020-02-28 04:17:33 1 [ERROR] Aborting
解决方案:
删除MySQL目录下的ib_logfile0和ib_logfile1两个文件
1、cd /Users/allin1059/Downloads/data/apps/mysql
2、rm -rf ib_logfile0 ib_logfile1
以上是关于mysql--容器无法启动的主要内容,如果未能解决你的问题,请参考以下文章
docker 启动 mysql,重启docker导致容器消失
045由Docker的MySQL官方镜像配置的容器无法启动问题的解决办法