Question or issue on macOS:
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:
I guess I don’t know where the right place is.
How to solve this problem?
![Mariadb Client For Mac Mariadb Client For Mac](https://poftut.b-cdn.net/wp-content/uploads/2019/02/img_5c7389bd1d410.png)
MariaDB Server is available for installation on macOS (formerly Mac OS X) via the Homebrew package manager. MariaDB Server is available as a Homebrew 'bottle', a pre-compiled package. This means you can install it without having to build from source yourself.
Solution no. 1:
- Clients and utilities for working with Aria tables Backup, Restore and Import Clients Clients for taking backups or importing/restoring data. Information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party. ↑ MariaDB Server Documentation ↑ SQL Statements & Structure.
- MySQL Workbench is a visual tool for database architects and developer. It offers administration tools for server configuration, user administration and much more. It is available on Windows, Linux, and MAC OS X. It is recommended for anyone who wants to master Database administration.
- MariaDB Server sets the standard for open source relational databases, with Oracle Database compatibility (e.g., sequences and PL/SQL), temporal tables, transparent sharding, instant schema changes, point-in-time rollback and modern SQL (i.e., common table expressions, window functions, JSON functions and more).
From
brew info mariadb
Just run
brew services start mariadb
on terminal.![Windows Windows](/uploads/1/2/6/5/126511435/796895776.jpg)
Solution no. 2:
With help from Calvin’s answer (deleted, I guess?), and this page, these are the steps I used to accomplish this:
On next boot, MariaDB was up and running.
Solution no. 3:
If you install MariaDB by Homebrew, you can use this to see how to start your mariadb at login.
To have launchd start mariadb at login:
Then to load mariadb now:
Or, if you don’t want/need launchctl, you can just run:
Solution no. 4:
You need to use
launchd
. See $ man launchd
.Additionally, Nathan wrote a good article on
launchd
.