mysql--容器无法启动

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

 

上一篇:拆系数FFT学习笔记


下一篇:attempted to return null from a method with a primitive return type