当前位置:Gxlcms >
数据库问题 >
MySQL无法启动——cannot allocate the memory for the buffer pool
MySQL无法启动——cannot allocate the memory for the buffer pool
时间:2021-07-01 10:21:17
帮助过:2人阅读
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
标签:数据库