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

前端 未结 4 1040
广开言路
广开言路 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 07:59

    If you install MariaDB by Homebrew, you can use this to see how to start your mariadb at login.

    brew info mariadb
    

    To have launchd start mariadb at login:

    ln -sfv /usr/local/opt/mariadb/*.plist ~/Library/LaunchAgents
    

    Then to load mariadb now:

    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
    

    Or, if you don't want/need launchctl, you can just run:

    mysql.server start
    

提交回复
热议问题