首页 > 代码库 > ERROR 2002 (HY000) Can't connect to local MySQL server through socket 'varlibmysqlmysql.sock' (2)

ERROR 2002 (HY000) Can't connect to local MySQL server through socket 'varlibmysqlmysql.sock' (2)

ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2)

My.cnf添加

[client]

socket = /tmp/mysql.sock(tmp该为实际路径)


本文出自 “网络工程专题” 博客,请务必保留此出处http://houzhibo.blog.51cto.com/3103241/1597814

ERROR 2002 (HY000) Can't connect to local MySQL server through socket 'varlibmysqlmysql.sock' (2)