Skip to content

Instantly share code, notes, and snippets.

@xingstarx
Created November 27, 2017 10:08
Show Gist options
  • Save xingstarx/611d13262533907b0391bf5d473e9800 to your computer and use it in GitHub Desktop.
Save xingstarx/611d13262533907b0391bf5d473e9800 to your computer and use it in GitHub Desktop.
mac上mysql启动报错 Can't connect to local MySQL server through socket '/tmp/mysql.sock'
  1. mysql 报错:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

使用brew install mysql 安装MySQL后,有时候会出现这个问题,是由于mysql的服务还没有启动。 需要执行mysql.server start 命令就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment