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

Mac 找不到mysql.sock 的解决办法

时间:2017-09-05 23:04:34      阅读:414      评论:0      收藏:0      [点我收藏+]

标签:through   win   sql   com   tar   /usr   logs   sock   href   

原文博客:http://www.cnblogs.com/Fly-Wind/p/5019452.html


错误:Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) ";

mysql -u root -h 172.0.0.1 -p

/usr/local/mysql/bin/mysqladmin -u root -h 172.0.0.1 -p shutdown

此时/tmp/下已经有mysql.sock,可以正常启动

 

Mac 找不到mysql.sock 的解决办法

标签:through   win   sql   com   tar   /usr   logs   sock   href   

原文地址:http://www.cnblogs.com/wangchaowei/p/7482174.html

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