OS X 10.10 Yosemite MySQL Wont Start At Startup

After upgrading to Yosemite, I noticed MySQL would no longer start on startup even though "Automatically Start MysQL Server on Startup" was enabled in the MySQL system preferences.

I'm not certain what caused this to break, but I suspect the LaunchDaemon file that MySQL 5.6 uses is no longer being recognized. Maybe the location it is placing the .plist file has been changed in OS X 10.10.

To resolve I created /Library/LaunchDaemons/com.mysql.mysql.plist with the following contents:




  
    KeepAlive
    
    Label
    com.mysql.mysqld
    ProgramArguments
    
    /usr/local/mysql/bin/mysqld_safe
    --user=mysql
    
  



Then load the newly created plist file
sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist

2 comments:

Unknown said...

When I run this I get: /Library/LaunchDaemons/com.mysql.mysql.plist: Invalid property list

telstar said...

Here is my version that works:
https://gist.github.com/spurv/bc2534b99e2558790569

Post a Comment