Skip to content

Starting MariaDB on System Boot #1687

Closed Answered by l008com
l008com asked this question in Casks
Discussion options

You must be logged in to vote

I found a solution! I'm not sure how or why it works, but if you add 'sudo' to the command launchd runs, mariadb is able to start up normally! This doesn't make sense because these launchdeamons are already being run as root, so adding sudo shouldn't DO anything. Yet, it fixes it! Go figure.

...
<key>ProgramArguments</key>
	<array>
		<string>/usr/bin/sudo</string>
		<string>/usr/local/opt/mariadb/bin/mariadbd-safe</string>
		<string>--datadir=/usr/local/var/mysql</string>
	</array>
...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by l008com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Casks
Labels
None yet
1 participant