当前位置: 移动技术网 > IT编程>数据库>Mysql > centos下mysql死掉 mmap(137363456 bytes) failed errno 12 Aborting解决方法

centos下mysql死掉 mmap(137363456 bytes) failed errno 12 Aborting解决方法

2020年07月14日  | 移动技术网IT编程  | 我要评论

在崩掉之前持续运行了,好几个月。突然间发现MySQL服务不在了,这个时候检查MySQL的错误日志。

 

发现如下

2020-06-23T21:37:58.184459Z 0 [ERROR] [MY-012681] [InnoDB] mmap(137363456 bytes) failed; errno 12

2020-06-23T21:37:58.190033Z 1 [ERROR] [MY-012956] [InnoDB] Cannot allocate memory for the buffer pool

2020-06-23T21:37:58.190077Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.

2020-06-23T21:37:58.190122Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine

2020-06-23T21:37:58.190327Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.

2020-06-23T21:37:58.230250Z 0 [ERROR] [MY-010119] [Server] Aborting

大概的意思就是内存不够用了,数据库初始化失败中止了。

这个时候我们要么升级服务器的物理内存,要么修改加大swp的虚拟内存。

或修改MySQL配置my.cnf ,设置innodb_buffer_pool_size=8M

在线工具:https://www.toolnb.com/

本文地址:https://blog.csdn.net/moxun2011/article/details/107310188

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网