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

后端 未结 30 1866
再見小時候
再見小時候 2020-11-30 23:15

I\'m getting this error

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

even though

30条回答
  •  天涯浪人
    2020-12-01 00:10

    If you look close, you'll see the difference:

    • The server listens on /var/run/mysqld/mysqld.sock
    • The client tries to connect to /var/run/mysqld/mysql.sock

    You'll have to adjust the one or the other.

提交回复
热议问题