MySQL: The server quit without updating PID file

流过昼夜 提交于 2020-02-29 01:42:18

1. 查看日志

151101 17:07:02 InnoDB: Completed initialization of buffer pool
151101 17:07:02 InnoDB: Fatal error: cannot allocate memory for the buffer pool
151101 17:07:02 [ERROR] Plugin 'InnoDB' init function returned error.
151101 17:07:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
151101 17:07:02 [ERROR] Unknown/unsupported storage engine: InnoDB
151101 17:07:02 [ERROR] Aborting

151101 17:07:02 [Note] /alidata/server/mysql/bin/mysqld: Shutdown complete

发现错误

2. 清理内存

free -m

echo 1 > /proc/sys/vm/drop_caches

3. 修改配置

vi /etc/my.cnf

innodb_buffer_pool_size = 16M -- 小于可用内存

4. 启动MySQL

service mysqld start

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!