ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

Posted puppey

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'相关的知识,希望对你有一定的参考价值。

事情发生在我刚安装好了linux的mysql机器上,当我登录mysq时.出现如图情况.

技术分享图片

一脸懵逼中....

经过一番google...

只需要做一个软连接到/tmp/mysql.sock上就好了....于是...

技术分享图片

告辞....

 

以上是关于ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'的主要内容,如果未能解决你的问题,请参考以下文章

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' 。安装后出错

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) on Mac

FreeBSD ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

ERROR 2002 (HY000): Can't connect to local MySQL server through socket'/var/run/mysqld/mysqld.sock'

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when I

尝试了一切仍然得到 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (