Mac端解决:Can't connect to local MySQL server through socket '/tmp/mysql.sock'
Posted 南墙
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac端解决:Can't connect to local MySQL server through socket '/tmp/mysql.sock' 相关的知识,希望对你有一定的参考价值。
安装mysql但是从来没启动过,今天一启动就报错:
Can‘t 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' 的主要内容,如果未能解决你的问题,请参考以下文章
Mac mySql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/my
mac ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock&
dbeaver can't connect HBase1.2 using phoenix driver #1863
mac使用brew安装mysql报RROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp