打开终端: 安装mysql: brew install mysql 设置mysql为开机启动项目: ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents 启动mysql