Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

来源:互联网 发布:ios资深程序员招聘 编辑:程序博客网 时间:2024/06/05 20:22

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

使用mysql经常会遇到这个错误提示,最近因为服务器磁盘空间满了,又一次出现这个问题,造成mysql无法启动!

以前处理过多次,但是这次一下子蒙住了,百度了一番,也没用靠谱的答案。

mysqld_safe mysqld from pid file pid ended

还有这个错误提示。


其实解决办法很简单

执行完这个

chmod 777 /tmp
然后启动mysql就可以了~

0 0
原创粉丝点击