1 个回答

这么说吧,你用brew install packagename是用来安装命令行工具的,一般不可能影响到图形界面。
brew cask install packagename倒是有可能。
mysql官方文档是通过dmg文件安装的:

The MySQL Installation Package includes a MySQL preference pane that enables you to start, stop, and control automated startup during boot of your MySQL installation.

这个面板就只有开启、关闭、控制开机自启mysql功能。 你用brew install mysql安装的mysql能用Homebrew Services来实现这些功能。

# 启动
$ brew services run mysql
# 关闭
$ brew services stop mysql
# 重启
$ brew services restart mysql
# 开启自启
$ sudo brew services start mysql
推荐问题
宣传栏