MacOS – How to disable MySQL from starting at boot

macbook promacosMySQLstartup

I have a mid 2013 MBA running OSX 10.9.

The process that starts on every start up is mysqld. I believe it was from an old version of MySQL I had installed (via AMPPS). I then installed MAMP Pro and I often have conflicts between these two processes. Everytime I shut down and restart my mac, I have to find the process of mysqld that is running (on activity monitor), quit it, and then start MAMP (via the terminal command: /Application/MAMP/bin/startMysql.sh won't work from anywhere else).

So I'm wondering how I can disable this mysqld from running on every startup.

Best Answer

Open terminal, then:

sudo launchctl list | grep -i mysql

launchctl remove xxx.xxx.mysql

Where "xxx.xxx" is included in the output of the first command, for example "org.macports.mysql". The password for the "sudo" command is your own user account's password.

True, sudo isn't needed to "list" but because you already gave a sudo password for the first command, it is stored for a short while in session memory and isn't required for the second command (which is privileged). Otherwise, just skip sudo on the first command and use it on the second. There are more ways than one to skin a cat.