linux下mysql启动失败

小啊小木头 2017-02-25 12:59:21
在一次重启linux服务器之后,发现mysql启动不了了,这个是日志
170225 0:46:41 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
170225 0:46:41 [Note] Plugin 'FEDERATED' is disabled.
170225 0:46:41 InnoDB: The InnoDB memory heap is disabled
170225 0:46:41 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170225 0:46:41 InnoDB: Compressed tables use zlib 1.2.8
170225 0:46:41 InnoDB: Using Linux native AIO
170225 0:46:41 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
170225 0:46:41 InnoDB: Completed initialization of buffer pool
170225 0:46:41 InnoDB: Fatal error: cannot allocate memory for the buffer pool
170225 0:46:41 [ERROR] Plugin 'InnoDB' init function returned error.
170225 0:46:41 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170225 0:46:41 [ERROR] Unknown/unsupported storage engine: InnoDB
170225 0:46:41 [ERROR] Aborting
170225 0:46:41 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
170225 0:46:41 [Note] Plugin 'FEDERATED' is disabled.
170225 0:46:41 InnoDB: The InnoDB memory heap is disabled
170225 0:46:41 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170225 0:46:41 InnoDB: Compressed tables use zlib 1.2.8
170225 0:46:41 InnoDB: Using Linux native AIO
170225 0:46:41 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
170225 0:46:41 InnoDB: Completed initialization of buffer pool
170225 0:46:41 InnoDB: Fatal error: cannot allocate memory for the buffer pool
170225 0:46:41 [ERROR] Plugin 'InnoDB' init function returned error.
170225 0:46:41 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170225 0:46:41 [ERROR] Unknown/unsupported storage engine: InnoDB
170225 0:46:41 [ERROR] Aborting
...全文
142 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ACMAIN_CHM 2017-02-25
  • 打赏
  • 举报
回复
170225 0:46:41 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(137363456 bytes) failed; errno 12 170225 0:46:41 InnoDB: Completed initialization of buffer pool 170225 0:46:41 InnoDB: Fatal error: cannot allocate memory for the buffer pool 检查内存。
lamking 2017-02-25
  • 打赏
  • 举报
回复
看日志,是分配内存的时候,出错了,170225 0:46:41 InnoDB: Fatal error: cannot allocate memory for the buffer pool InnoDB: mmap(137363456 bytes) failed; errno 12 ,错误代码12 表示Cannot allocate memory。看下是不是空闲内存不足了。

56,679

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧