Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't autostart MySQL with LaunchAgent as _mysql #11710
I just installed MySQL 5.5.20 on a brand new lion installation (brew doctor is completely happy with the machine). This time, however, rather than running mysql as myself I've decided to make it run as _mysql. I've managed to get mysql running with
Here's the output from console:
While fixing this issue I've tried a bunch of things, including:
but none of these gets me further than what I've. Any suggestions?
Okay, I've got it running now. Turns out that:
So moving the homebrew.mxcl.mysql.plist from /Library/LaunchAgents to /Library/LaunchDaemons solves the problem.
So I'm going to leave this open for now. If this is the correct solution to running mysql as _mysql please update the formula. If not I'm happy to learn the correct way to doing this :). Thanks!
Thanks for the quick reply @jacknagel! Yes I did. See my last step of what I've done and first line of console output that I reported:
Which I think is the problem. I'm not sure if UserName gets honored on other OS X, but seems like on Lion it doesn't? The only way that I can get it to start as root is placing the file in /Library/LaunchDaemons.