connect to local MySQL server through socket

前端 未结 6 1962
不知归路
不知归路 2020-12-05 21:01

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

I tried everything I found o

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 21:34

    If you have multiple mysql servers installed then make sure you run the correct MYSQL or change your path settings. For example:

    /opt/lampp/bin/mysql -u root -p 
    

    I have XAMPP installed , the solution worked for me.

提交回复
热议问题