Skip to content

Instantly share code, notes, and snippets.

@hitenpratap
Created October 19, 2016 14:28
Show Gist options
  • Save hitenpratap/d9383efebbdbee704ef23f49121c5c4e to your computer and use it in GitHub Desktop.
Save hitenpratap/d9383efebbdbee704ef23f49121c5c4e to your computer and use it in GitHub Desktop.
Script to remove MySQL completely from Mac(If being installed using non-homebrew method)
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 /private/var/db/receipts/*mysql*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment