首页 > 数据库技术 > 详细

Mac端解决:Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

时间:2019-02-05 17:47:22      阅读:4868      评论:0      收藏:0      [点我收藏+]

安装mysql但是从来没启动过,今天一启动就报错:

Cant connect to local MySQL server through socket /tmp/mysql.sock (2)

其实是mysql服务没起来。。。

localhost:~ miaoying$ mysql.server start
Starting MySQL
... SUCCESS! 

然后再去sudo mysql就行了

Mac端解决:Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

原文:https://www.cnblogs.com/miaoying/p/10352893.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!