brew install packagename
to install command-line tools, and it's generally impossible to affect the graphical interface. brew cask install packagename
is possible. dmg
file:
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.
this panel can only turn on, off, and control the boot self-boot mysql function. The mysql you install with brew install mysql
can use Homebrew Services to achieve these functions.
-sharp
$ brew services run mysql
-sharp
$ brew services stop mysql
-sharp
$ brew services restart mysql
-sharp
$ sudo brew services start mysql