Skip to content

Instantly share code, notes, and snippets.

@stillfinder
Last active January 17, 2019 21:58
Show Gist options
  • Save stillfinder/71c8fe0f32f7432bf7c433efc027b06e to your computer and use it in GitHub Desktop.
Save stillfinder/71c8fe0f32f7432bf7c433efc027b06e to your computer and use it in GitHub Desktop.
Uninstall MySql on Mac
brew remove mysql
brew cleanup
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/var/mysql
sudo rm -rf /usr/local/mysql*
sudo rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
#(Edit /etc/hostconfig) sudo nano /etc/hostconfig (Remove line MYSQLCOM=-YES) or run the next line
sudo sed -i -e 's/'"MYSQLCOM=-YES"'/'""'/g' /etc/hostconfig
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.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment