在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
来源:CSDN
作者:little_stupid_child
链接:https://blog.csdn.net/little_stupid_child/article/details/80620839