Yosemite - MAMP - Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock' (2)

前端 未结 8 1435
不思量自难忘°
不思量自难忘° 2021-02-13 21:16

I have problem when I try to connect to MySQL MAMP :

ERROR 2002 (HY000): Can\'t connect to local MySQL server through socket \'/Applications/MAMP/tmp/mysql/mysql         


        
8条回答
  •  太阳男子
    2021-02-13 21:51

    Rename .sock file of mysql and restart your MySQL server.

    /Applications/MAMP/tmp/mysql/mysql.sock to /Applications/MAMP/tmp/mysql/mysql_old.sock

提交回复
热议问题