Getting MySQL Running in Leopard
December 25th, 2007
I upgraded to Leopard about a month ago and knew I’d have issues starting MySQL (which I installed in Tiger) from previous experiences getting it to start at work. The MySQL starter in the System Preferences in Leopard silently fails and won’t start MySQL. Following the instructions provided on the TomatoCheese blog, I was able to get everything running by doing the following (I didn’t archive Tiger, I simply upgraded to Leopard):
- Copied the MySQL launchd configuration file provided by TomatoCheese blog to /Library/LaunchDaemons (that’s the root library, not your user library).
- Made sure the owner of MySQL was “mysql”:
sudo chown -R mysql /usr/local/mysql. - Started mysql using the command:
sudo launchctl load /Library/LaunchDaemons/com.mysql.mysqld.plist. - I then created a start and stop application using the method described in the comments by opening Script Editor and creating a start application (I changed the code slightly since the provided code didn’t seem to work):
do shell script "sudo launchctl load /Library/LaunchDaemons/com.mysql.mysqld.plist" with administrator privileges(use “unload” for the stop version).
MySQL appears to be aware of the problem but who knows when it will be fixed.
Sphere: Related Content