mac 系统 用brew install mysql@5.7后 mysql 报错: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock
这是由于brew install mysql@5.7
后没有启动mysql
服务导致的,所以解决方案是直接启动mysql
服务就好:
```bash
$ /usr/local/opt/mysql@5.7/bin/mysql.server start
```