码迷,mamicode.com
首页 > 数据库 > 详细

mysql--容器无法启动

时间:2020-02-28 14:10:29      阅读:83      评论:0      收藏:0      [点我收藏+]

标签:turn   mysql   failed   unknown   func   appears   ror   str   ODB   

技术图片

 

 


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--容器无法启动

标签:turn   mysql   failed   unknown   func   appears   ror   str   ODB   

原文地址:https://www.cnblogs.com/lutt/p/12376680.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!