VPS侦探论坛

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

mysql数据库连不上,查询进程还在 是什么问题?

[复制链接]
发表于 2010-12-28 15:26:35 | 显示全部楼层 |阅读模式

最近有2次mysql数据库突然好好的就连不上了

查询进程 lnmp status显示mysql还在

lnmp restart 重启下 数据库即可链接正常

请教老大  这个是什么问题?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-12-28 17:11:53 | 显示全部楼层

回复 1# 的帖子



看看/usr/local/mysql/var/主机名.err 里面有什么错误提示
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-12-29 10:25:40 | 显示全部楼层

回复 2# 的帖子


101226 21:38:27 mysqld_safe mysqld from pid file /usr/local/mysql/var/swisen.com.pid ended
101226 21:38:31 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
101226 21:38:32  InnoDB: Started; log sequence number 0 985399516
101226 21:38:33 [Note] Event Scheduler: Loaded 0 events
101226 21:38:33 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.48-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
101228 15:17:11 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

101228 15:17:12 [Note] Event Scheduler: Purging the queue. 0 events
101228 15:17:12 [ERROR] /usr/local/mysql/libexec/mysqld: Sort aborted
101228 15:17:14  InnoDB: Starting shutdown...
101228 15:17:17  InnoDB: Shutdown completed; log sequence number 0 985489357
101228 15:17:17 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

101228 15:17:17 mysqld_safe mysqld from pid file /usr/local/mysql/var/swisen.com.pid ended
101228 15:17:18 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
101228 15:17:18  InnoDB: Started; log sequence number 0 985489357
101228 15:17:19 [Note] Event Scheduler: Loaded 0 events
101228 15:17:19 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.48-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution

最后2天的日志
链接不上出现在28号
老大帮忙看下什么情况啊
thanks
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-12-29 14:51:24 | 显示全部楼层

回复 3# 的帖子




去掉/etc/my.cnf 里面的scoket = /tmp/mysql.sock ,再启动试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-12-29 17:27:34 | 显示全部楼层

回复 4# 的帖子


去掉 [client] 里面的 还是 server里面的 scoket = /tmp/mysql.sock

或者 2个scoket = /tmp/mysql.sock  都去掉?

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

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

本版积分规则

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

GMT+8, 2024-11-18 05:40 , Processed in 0.031276 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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