1、安装mysql5.7
brew install mysql@5.7
2、安装mysql-client
brew install mysql-client
3、vim ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/mysql-client/lib"
export CPPFLAGS="-I/usr/local/opt/mysql-client/include"
source ~/.bash_profile