码迷,mamicode.com
首页 > 数据库 > 详细

Mac启动mysql出现错误

时间:2014-12-15 00:16:52      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:http   io   ar   使用   on   art   问题   log   ad   

Mac启动mysql出现错误error: ‘Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)‘

刚刚升级mac到10.10,重新用Homebrew安装了出现提示:

A “/etc/my.cnf” from another install may interfere with a Homebrew-built
server starting up correctly.

To connect:
mysql -uroot

To have launchd start mysql at login:
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
Then to load mysql now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
Or, if you don‘t want/need launchctl, you can just run:
mysql.server start

参考stackoverflow ,使用mysqld stop停止,然后用mysql.server restart解决了问题

按照Homebrew的安装提示,可能可以使用launchctl解决问题,但目前不知道是什么用处,这里先记录一下

Mac启动mysql出现错误

标签:http   io   ar   使用   on   art   问题   log   ad   

原文地址:http://my.oschina.net/caohong/blog/356044

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!