Mysql Down亚马逊EC2错误连接到数据库

时间:2016-05-27 06:32:55

标签: php mysql amazon-web-services amazon-ec2

昨晚我们的数据库关机,我无法弄清楚为什么我只是重新启动服务以获得所有备份,我们正在运行一个c4.large所以输出mysql错误日志的相当大的盒子在下面。

160526 23:27:31 [Note] Plugin 'FEDERATED' is disabled.
160526 23:27:31 InnoDB: The InnoDB memory heap is disabled
160526 23:27:31 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160526 23:27:31 InnoDB: Compressed tables use zlib 1.2.8
160526 23:27:31 InnoDB: Using Linux native AIO
160526 23:27:31 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
160526 23:27:31 InnoDB: Completed initialization of buffer pool
160526 23:27:31 InnoDB: Fatal error: cannot allocate memory for the buffer pool
160526 23:27:31 [ERROR] Plugin 'InnoDB' init function returned error.
160526 23:27:31 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
160526 23:27:31 [ERROR] Unknown/unsupported storage engine: InnoDB
160526 23:27:31 [ERROR] Aborting

160526 23:27:31 [Note] /usr/libexec/mysql55/mysqld: Shutdown complete

有人可以帮我解决这个错误我看到致命错误无法为缓冲池分配内存但不确定这意味着什么或如何修复?

还有什么可能导致这种情况?

谢谢

谷歌搜索后我添加了

innodb_buffer_pool_size = 20M

到my.cnf这是一个可靠的解决方案吗?

0 个答案:

没有答案