博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
创建 多个 MySQL docker 出现错误时
阅读量:7079 次
发布时间:2019-06-28

本文共 1137 字,大约阅读时间需要 3 分钟。

创建 多个 MySQL docker 出现错误时

风来了.fox
……
140505 16:05:59 InnoDB: Using Linux native AIO
140505 16:05:59 InnoDB: Warning: io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
InnoDB: Warning: io_setup() attempt 1 failed.
InnoDB: Warning: io_setup() attempt 2 failed.
InnoDB: Warning: io_setup() attempt 3 failed.
InnoDB: Warning: io_setup() attempt 4 failed.
InnoDB: Warning: io_setup() attempt 5 failed.
140505 16:06:02 InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts.
InnoDB: You can disable Linux Native AIO by setting innodb_use_native_aio = 0 in my.cnf
140505 16:06:02 InnoDB: Fatal error: cannot initialize AIO sub-system
140505 16:06:02 [ERROR] Plugin ‘InnoDB’ init function returned error.
140505 16:06:02 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
140505 16:06:02 [ERROR] Unknown/unsupported storage engine: InnoDB

解决方案:

1.先进入 mysql (已启动的)docker 中,执行如下命令
这里使用的mysql:5.6.31 docker ,如果配置文件地址不一样请自行更改

echo "innodb_use_native_aio = 0" >> /etc/mysql/my.cnf

所有的mysql docker 都要改

2.把这批改完的mysql docker 关闭
3.启动 新创建 mysql docker, 按 1 的方法更改,如果还是无法启动,把其他的mysql docker 都关闭,就可以启动了,启动了,还是要加入 1 的配置

转载地址:http://bvjml.baihongyu.com/

你可能感兴趣的文章
2018年终总结
查看>>
华为云学院新春大礼包:场景化微认证上新了!
查看>>
DAppDiscover | 盘点2018年度十大DAPP
查看>>
百度地图-矩形编辑的模拟实现
查看>>
一个有趣的问题: 如何用HashSet来存储重复的字符串?
查看>>
Vue.js进入/离开&列表过度动画。
查看>>
什么是字面值
查看>>
Spring - Java-based configuration: Using @Configuration
查看>>
快速体验 Sentinel 集群限流功能,只需简单几步
查看>>
qsv格式爱奇艺视频知否如何转换成MP4格式
查看>>
Java程序员月薪达到三万,需要技术水平达到什么程度?
查看>>
Vue笔记(六)——Vue组件通信&Vuex
查看>>
css-从笔试题中看知识
查看>>
Linux CTF 逆向入门
查看>>
二)golang工厂模式
查看>>
进制转换的那些事儿
查看>>
跨域请求图解
查看>>
FE.ES-终结0.1+0.2,答到点上的那种
查看>>
egg(28)--mongoose使用聚合管道
查看>>
个推前端微服务化:突破传统SPA瓶颈
查看>>