Skip to content

Instantly share code, notes, and snippets.

@felipebhz
Created April 21, 2019 18:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipebhz/207100bf18ce534ca71fe9645adf4667 to your computer and use it in GitHub Desktop.
Save felipebhz/207100bf18ce534ca71fe9645adf4667 to your computer and use it in GitHub Desktop.
Purge MySQL from Mac OSX
To uninstall MySQL and completely remove it (including all databases) from your Mac do the following:
Open a terminal window
Use mysqldump to backup your databases to text files!
Stop the database server
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
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*
---
credits: https://community.jaspersoft.com/wiki/uninstall-mysql-mac-os-x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment