How do I start MariaDB on boot on Mac OS X?

前端 未结 4 1038
广开言路
广开言路 2021-02-04 07:51

Just installed MariaDB (with homebrew). Everything looks like it\'s working, but I can\'t figure out how to have it automatically startup on boot on my Mac. I can\'t find any

4条回答
  •  醉话见心
    2021-02-04 08:19

    With help from Calvin's answer (deleted, I guess?), and this page, these are the steps I used to accomplish this:

    cp /usr/local/Cellar/mariadb/5.5.30/homebrew.mxcl.mariadb.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
    

    On next boot, MariaDB was up and running.

提交回复
热议问题