Can't connect to MySQL on Mac — missing mysql.sock file

前端 未结 7 1025
醉话见心
醉话见心 2020-12-16 04:10

I installed MySQL on my Mac OS 10.6 about a week ago, and, after some playing around, got it to work just fine. It integrated with python MySQLdb and I also got Sequel Pro

7条回答
  •  天涯浪人
    2020-12-16 04:35

    Ok, I just spent a couple hours struggling with this same problem. I had installed the dmg file for MySql 5.5.20 (64bit) for osx 10.6 on my iMac with OSX 10.7.2 - and the /tmp/mysql.sock was missing!

    The answer turned out to be simply install the MySQLStartupItem.pkg that comes with the dmg file and restart the system. This starts up the daemons upon startup (which I hoped would be optional).

    Magically, my /tmp/mysql.sock file appeared and all is well!

提交回复
热议问题