-
I have a Mac mini running macOS 10.15 (Catalina) and I have installed mariadb 10.5.9 via homebrew. Everything runs well and properly, with one exception: I cannot get the database to start up on system boot. It tries with the brew-installed launchd item. But it fails for some reason. Once logged in to the computer, if I run that very same command as root, the database starts right up and runs no problem. I've had similar problems in the past that were caused by the permissions on So here's the specifics. This is the launchd item I'm using to start the server. It is running, I can see the database try to start up in its error log.
So that tries to start up the database, but fails. But when I run that very same command in the terminal after boot, the database starts right up fine. But if I forget to do this, of course the world will explode or at least something bad will happen.
There are a few I am at a loss. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Why not use |
Beta Was this translation helpful? Give feedback.
-
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.
|
Beta Was this translation helpful? Give feedback.
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.