Remove mysqld from autostart

Hedge picture Hedge · Nov 13, 2013 · Viewed 7.8k times · Source

I installed mysql via Homebrew using these instructions http://blog.teamtreehouse.com/installing-ruby-rails-and-mysql-on-os-x-lion.

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

Answer

deceze picture deceze · Nov 13, 2013
launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist

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