标签:mysql
解决办法:ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2)
vim /etc/my.cnf
在最后新加一个段,因为在编译安装的时候,路径写的是sock=/tmp/mysql.sock ,但是启动时,系统回去默认找var/lib/mysql/mysql.sock, 所以就新加个字段指定实际路径
[mysql]
socket=/tmp/mysql.
本文出自 “jurchens” 博客,请务必保留此出处http://6656395.blog.51cto.com/6646395/1944674
ERROR 2002 (HY000):mysql 启动常见错误
标签:mysql
原文地址:http://6656395.blog.51cto.com/6646395/1944674