VPS侦探论坛

 找回密码
 注册
查看: 2804|回复: 4

mysql经常自动结束,然后无法启动

[复制链接]
发表于 2017-6-14 08:41:01 | 显示全部楼层 |阅读模式

[root@ebs-47166 gxSG_32]# /*****/mysqlrestart.sh
Starting MySQL. ERROR! The server quit without updating PID file (/data/var/ebs-47166.pid).

开启错误日志如下:

170614 08:30:02 mysqld_safe Starting mysqld daemon with databases from /data/var
170614  8:30:02 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.48) starting as process 20854 ...
170614  8:30:02 [Note] Plugin 'FEDERATED' is disabled.
170614  8:30:02 InnoDB: The InnoDB memory heap is disabled
170614  8:30:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170614  8:30:02 InnoDB: Compressed tables use zlib 1.2.7
170614  8:30:02 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
170614  8:30:02 InnoDB: Completed initialization of buffer pool
170614  8:30:02 InnoDB: Fatal error: cannot allocate memory for the buffer pool
170614  8:30:02 [ERROR] Plugin 'InnoDB' init function returned error.
170614  8:30:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170614  8:30:02 [ERROR] Unknown/unsupported storage engine: InnoDB
170614  8:30:02 [ERROR] Aborting

170614  8:30:02 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

170614 08:30:02 mysqld_safe mysqld from pid file /data/var/ebs-47166.pid ended
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-6-14 08:58:53 | 显示全部楼层


内存2G,刚刚忘了说明
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-6-14 09:01:58 | 显示全部楼层

按提示是无法分配内存,也就是内存不够用了,可能你其他程序占用较多
可以先调整/etc/my.conf 中 innodb_buffer_pool_size 调小些看看
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-6-14 19:34:12 | 显示全部楼层

回复 3# 的帖子




如果是4G的内存,开启innode,应该如何配置my.cnf ?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-6-15 09:34:00 | 显示全部楼层

回复 4# 的帖子


参数都是自动优化的

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-25 23:24 , Processed in 0.026105 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表