Autostart MySQL Server on Mac OS X Yosemite/El Capitan

前端 未结 7 1356
抹茶落季
抹茶落季 2020-12-02 05:10

I would like to auto start the MySQL server on startup. This was possible in Mavericks but seems to be not working on Yosemite.

edit: seems this wo

7条回答
  •  天命终不由人
    2020-12-02 05:14

    If you installed mysql with homebrew, you can get instructions on how to autostart it by typing brew info mysql.

    For example, the output on my machine is:

    To have launchd start mysql at login:
      ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
    Then to load mysql now:
      launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
    

提交回复
热议问题