# 安装最新版本
brew install mysql
# 安装制定版本
brew install mysql@5.7
# 启动 mysql, 并设置为开机启动
brew services start mysql
# 关闭 mysql
brew services stop mysql
# 重启 mysql
brew services restart mysql
# 查看服务器所有组件启动情况
brew services list
# 查看已安装的包
brew list
已经涵盖了brew最最常用的一些命令。
1 2 3 4 5 6 |
|
下面是brew稍微不常用但是也非常有用的命令:
1 2 3 |
|