Skip to content

Starting MariaDB at Boot #1741

Answered by l008com
l008com asked this question in Casks
Jun 26, 2021 · 2 comments · 11 replies
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: 2 comments 11 replies

Comment options

You must be logged in to vote
11 replies
@l008com
Comment options

@SMillerDev
Comment options

@l008com
Comment options

@l008com
Comment options

@l008com
Comment options

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
2 participants