当前位置:首页 > 数据库 > Sqlserver

Can't connect to local MySQL server through socket

(HY000): Cant connect to local MySQL server through socket /var/lib/mysql/mysql.sock

然后使用命令查看mysql是不是真的已经起来了

ps -A|grep mysql

查看,两个进程都启动了,看着是正常,但是查看端口时发现3306端口并没有开启,什么问题???

接着查,看一下mysql当前处于什么状态

service mysqld status

输出结果不是刚才想的那样:

MySQL is running but PID file could not be found

有网友提示将mysql进程杀死,然后重启,试了,无效。

查看mysql的错误日志,显示如下信息:

/usr/local/mysql/bin/mysqld: Disk is full writing ./mysql-bin.~rec~ (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)

原来是磁盘不足,清理了下磁盘正常了。

Can't connect to local MySQL server through socket

标签:

本文系统来源:http://www.cnblogs.com/lrxing/p/4560713.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐