【问题解决】解决“ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
程序员文章站
2022-04-18 22:06:37
...
在mac上安装了mysql后进行登录,总是报ERROR 2002 (HY000)的错误,网上搜索说要先删除/tmp/mysql.sock文件。后来发现/tmp目录下并没有mysql.sock文件,于是启动mysql服务,问题解决!
cd /usr/local/mysql/
sudo ./support-files/mysql.server start
详细可参考此链接:https://blog.csdn.net/cryhelyxx/article/details/43015911
上一篇: javascript数组操作(包含删除、增加、截取、合并等)用法实例总结
下一篇: One or more Filters failed to start. Full details will be found in the appropriate containerlog file
推荐阅读
-
连接Mysql提示Can’t connect to local MySQL server through socket的解决方法
-
MySQL错误 ERROR 2002 (HY000): Can't connect to local MySQL server through socket 的解决办法
-
linux安装MySQL后输入mysql显示 ERROR 2002 (HY000): Can't connect to local MySQL server through socket
-
ERROR 2002 (HY000): Can't connect to local MySQL server thro
-
【解决】Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.soc
-
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var mys
-
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var mys
-
Can't connect to local MySQL server through socket解决方法_MySQL
-
ERROR 2002 (HY000): Can't connect to local MySQL server thr_MySQL
-
Can’t connect to local MySQL server through socket 解决办法