VPS侦探论坛

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

mysql无故挂

[复制链接]
发表于 2013-12-3 21:26:40 | 显示全部楼层 |阅读模式

最近mysql老是无故挂掉,贴一段mysql日志 希望军哥帮忙看看 谢谢了
[code]
131203 19:31:19 mysqld_safe Number of processes running now: 0
131203 19:31:19 mysqld_safe mysqld restarted
131203 19:31:20 [Warning] You need to use --log-bin to make --binlog-format work.
131203 19:31:20 InnoDB: The InnoDB memory heap is disabled
131203 19:31:20 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131203 19:31:20 InnoDB: Compressed tables use zlib 1.2.3
131203 19:31:20 InnoDB: Initializing buffer pool, size = 16.0M
131203 19:31:20 InnoDB: Completed initialization of buffer pool

[ 本帖最后由 superman 于 2013-12-4 09:05 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-12-3 21:59:08 | 显示全部楼层


nginx日志

2013/12/03 21:42:18 [crit] 22914#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 60.168.115.105, server: www.****.com, request: "GET /forum.php?mod=post&action=reply2592000 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.****.com", referrer: "http://www.****.com/forum.php?mod=post&action=reply2592000"
2013/12/03 21:42:18 [crit] 22914#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 60.168.115.105, server: www.****.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.****.com", referrer: "http://www.****.com/"
2013/12/03 21:42:18 [crit] 22914#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 60.168.115.105, server: www.****.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-12-3 22:11:54 | 显示全部楼层

131203 19:59:02 [Warning] 'user' entry 'root@AY1308162201443403e0Z' ignored in --skip-name-resolve mode.
131203 19:59:02 [Warning] 'proxies_priv' entry '@ root@AY1308162201443403e0Z' ignored in --skip-name-resolve mode.
启用--skip-name-resolve参数的话,就不能用主机名直接连接了,把用户里的带AY1308162201443403e0Z的删除,删除前要确保有127.0.0.1的

但是这个问题不会导致mysql挂掉

nginx日志里只是显示php-fpm挂了,具体原因要看php-fpm日志或开启slowlog看
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-12-3 22:18:59 | 显示全部楼层

回复 3# 的帖子




昨天晚上从凌晨两点开始又挂了,cpu一直都是100%
查看php-fpm.log  cpu100%的时间段没有任何记录
nginx_error.log里面的日志也是这个时间段没有任何记录
求助下军哥我该怎么找到问题的所在?现在站一开,一会就cpu100%了,而且找不到记录,谢谢军哥了

[ 本帖最后由 superman 于 2013-12-4 09:02 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-12-4 10:04:47 | 显示全部楼层

开slowlog看看

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

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

本版积分规则

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

GMT+8, 2024-12-27 02:39 , Processed in 0.026536 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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