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

Grant Birchmeier picture Grant Birchmeier · Jul 4, 2013 · Viewed 19.9k times · Source

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 Mac-specific docs for this.

The installation output says:

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

I guess I don't know where the right place is.

Answer

Sucipto picture Sucipto · Aug 26, 2016

From brew info mariadb

To have launchd start mariadb now and restart at login:
  brew services start mariadb
Or, if you don't want/need a background service you can just run:
  mysql.server start

Just run brew services start mariadb on terminal.