使用mysql时出现错误:mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
首先,你要看看你的mysql是否启动😂
mac在“系统偏好设置”中查看mysql图标
点击看看是否是running状态
如果是running状态,再去查看其他问题,可以参考:
https://blog.csdn.net/github_37216944/article/details/78843685