Cannot find mysql.sock

前端 未结 14 1255
一向
一向 2020-12-04 11:20

I just had to re-install mysql and I am having a problem starting it up. It cannot find the socket (mysql.sock). The problem is that neither can I. In my Mac OS X 10.4 te

14条回答
  •  春和景丽
    2020-12-04 11:30

    I'm getting the same error on Mac OS X 10.11.6:

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

    After a lot of agonizing and digging through advice here and in related questions, none of which seemed to fix the problem, I went back and deleted the installed folders, and just did brew install mysql.

    Still getting the same error with most commands, but this works:

    /usr/local/bin/mysqld

    and returns:

    /usr/local/bin/mysqld: ready for connections.

    Version: '5.7.12' socket: '/tmp/mysql.sock' port: 3306 Homebrew

提交回复
热议问题