登录失败后,mysql返回套接字错误

时间:2017-02-18 05:55:23

标签: mysql sockets

我一直在反对这个错误 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

并以某种方式只是通过简单地无法正确登录来复制它。

$ mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

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

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

这里发生了什么?

0 个答案:

没有答案