加入收藏 | 设为首页 | 会员中心 | 我要投稿 重庆站长网 (https://www.023zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

MySQL常见内存不足启动失败的完美处理方法

发布时间:2022-03-02 14:57:24 所属栏目:MySql教程 来源:互联网
导读:MySQL常见内存不足启动失败的完美解决方法: 1.启动MySQL时一直不成功,查看错误日志 /var/log/mysql/error.log 2.主要的错误信息有如下几条: [ERROR] InnoDB: mmap(136151040 bytes) failed; errno 12 [ERROR] InnoDB: Cannot allocate memory for the buff
      MySQL常见内存不足启动失败的完美解决方法:

     1.启动MySQL时一直不成功,查看错误日志 /var/log/mysql/error.log
  
     2.主要的错误信息有如下几条:
 
[ERROR] InnoDB: mmap(136151040 bytes) failed; errno 12
[ERROR] InnoDB: Cannot allocate memory for the buffer pool
[ERROR] InnoDB: Plugin initialization aborted with error Generic error
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] Failed to initialize plugins.
[ERROR] Aborting
     3.查询后是因为内存不足,查看内存
 
    4.增加自动挂载:
  
service mysql start 启动成功
 
      5. 备注:
 
生成空文件
 
dd if=/dev/zero of=1.txt bs=1M count=2 生成一个指定大小的空文件
if=文件名:输入文件名
of=文件名:输出文件名
bs=字节大小
count=个数
总结
 
以上所述是小编给大家介绍的MySQL常见内存不足启动失败的完美解决方法,希望对大家有所帮助。

(编辑:重庆站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读