Mysql – Remove thesqld from autostart


I installed mysql via Homebrew using these instructions

I also added it to the auto-start by using these commands:

mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mysql/5.5.15/com.mysql.mysqld.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist

Since it takes up a lot of RAM I'd like to remove it from the auto-start but don't know how to accomplish this. How can I remove mysqld from the autostart?

launchtl list | grep mysql only gives these entries which can't be removed

4104 – homebrew.mxcl.mysql

4317 – 0x7f90704148e0.anonymous.mysqld

Best Solution

launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist

Or just remove the ~/Library/LaunchAgents/com.mysql.mysqld.plist file.