Cannot find mysql.sock

前端 未结 14 1283
一向
一向 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条回答
  •  猫巷女王i
    2020-12-04 11:37

    Unfortunately none of the above have worked in my case. But finally I found solutions.

    To find where is mysql.sock file, simply open xampp manager, select MySQL and click on Configure on the right. On the config panel click Open Conf File, and simply search for mysql.sock by pressing the CMD+F shortcut.

    In my case, the owner of the mysql.sock was changed, and I had to change it back to root admin with: chmod root:admin mysql.sock

    After that the database had been accessed.

提交回复
热议问题