首页 > 数据库技术 > 详细

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

时间:2017-08-13 15:02:17      阅读:263      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!