Skip to content

Instantly share code, notes, and snippets.

@tancnle
Last active December 17, 2015 08:39
Show Gist options
  • Save tancnle/5581326 to your computer and use it in GitHub Desktop.
Save tancnle/5581326 to your computer and use it in GitHub Desktop.
Remove MySQL from MacOSX
# Credit: http://akrabat.com/computing/uninstalling-mysql-on-mac-os-x-leopard/
# 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*
sudo sed -i '.bak' 's/^MYSQLCOM.*//g' /etc/hostconfig
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