Skip to content

Instantly share code, notes, and snippets.

@arnaudbreton
Created October 17, 2013 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnaudbreton/7020848 to your computer and use it in GitHub Desktop.
Save arnaudbreton/7020848 to your computer and use it in GitHub Desktop.
Remove MySQL from OSX
# Source: http://johnmcostaiii.net/2011/removing-mysql-osx-lion/
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
# Edit the following file, removing the line `MYSQLCOM=-YES-`.
# you may need sudo for write privileges to edit the file
# TIP: when using vim, use `dd` to delete the line and then `:wq` to save
# the file
sudo vim /etc/hostconfig # remove the line MYSQLCOM=-YES-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment