http://segmentfault.com/q/1010000000094608 同样的问题,先在网上搜了下其他人解决这个问题的方法,是去修改mysql.cnf文件添加mysql.sock文件路径,再搜了一下我的mac没有mysql.cnf,也没有mysql.sock文件. 在查看mysql的安装说明ReadMe.txt中有个启动方法 If you have installed the Startup Item, use this command: shell> sudo /Library/…