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

前端 未结 30 1316
南旧
南旧 2020-12-04 05:14

I installed MySQL on Mac OS X Mountain Lion with homebrew install mysql, but when I tried mysql -u root I got the following error:

30条回答
  •  庸人自扰
    2020-12-04 05:55

    It's probably because MySQL is installed but not yet running.

    To verify that it's running, open up Activity Monitor and under "All Processes", search and verify you see the process "mysqld".

    You can start it by installing "MySQL.prefPane".

    Here is the complete tutorial which helped me: http://obscuredclarity.blogspot.in/2009/08/install-mysql-on-mac-os-x.html

提交回复
热议问题