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

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

    I had the same problem. I solved it following these steps:

    1. I stopped and restarted MySQL via System Preferences -> MySQL (see also https://stackoverflow.com/a/26523977/204807)
    2. I entered sudo mysql_upgrade in a terminal window, and pressed enter

    After the update process I was able to connect with my MySQL.

提交回复
热议问题