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

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

时间:2017-08-13 15:15:39      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:数据库

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

标签:数据库

原文地址:http://mylml.blog.51cto.com/13201734/1955903

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