MySQL无法启动——cannot allocate the memory for the buffer pool

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL无法启动——cannot allocate the memory for the buffer pool相关的知识,希望对你有一定的参考价值。

2017-08-13 13:40:27 19011 [Note] InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
2017-08-13 13:40:27 19011 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2017-08-13 13:40:27 19011 [ERROR] Plugin ‘InnoDB‘ init function returned error.
2017-08-13 13:40:27 19011 [ERROR] Plugin ‘InnoDB‘ registration as a STORAGE ENGINE failed.
2017-08-13 13:40:27 19011 [ERROR] Unknown/unsupported storage engine: InnoDB
2017-08-13 13:40:27 19011 [ERROR] Aborting
# free -m  发现内存不足

解决办法:

在my.cnf添加以下字段

innodb_buffer_pool_size=200M
key_buffer=120M








以上是关于MySQL无法启动——cannot allocate the memory for the buffer pool的主要内容,如果未能解决你的问题,请参考以下文章

mysql报错mmap(137428992 bytes) failed; errno 12,Cannot allocate memory for the buffer pool

《MySQL系列-部署维护》MySQL启动异常:error while loading shared libraries: libncurses.so.5: cannot open shared...

linux 启动mysq报错 提示 mysqld: cannot execute binary file

nginx无法启动提示libpcre.so.1: cannot open shared object

ESXi4.1无法启动,提示panic :cannot open vpxa.vgz

cannot create windows service for mysql