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

前端 未结 8 1437
不思量自难忘°
不思量自难忘° 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:50

    simply remove two files ib_logfile0 and ib_logfile1 from /Applications/MAMP/db/mysql56

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题