Cannot find mysql.sock

前端 未结 14 1282
一向
一向 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:28

    This solved my problem

    mysql_config --socket
    

    UPDATE

    mysql_config can tell us where the file mysql.sock should be, but in my case the file didn't exist. So, I've deleted my.cnf:

    sudo rm -rf /etc/my.cnf
    

    And then restarted mysql:

    brew services restart mysql
    

    The file was created and mysql is now running well.

提交回复
热议问题