Skip to content

Instantly share code, notes, and snippets.

@dlzi
Last active November 30, 2018 08:04
Show Gist options
  • Save dlzi/0e95958e08f58d48c4ea6465cdcbccbe to your computer and use it in GitHub Desktop.
Save dlzi/0e95958e08f58d48c4ea6465cdcbccbe to your computer and use it in GitHub Desktop.
How to uninstall MySQL 5.7.2x on a macOS

1. DO NOT forget to backup your data.
2. Stop the database server.

To uninstall MySQL and completely remove it (including all databases) from your Mac, do the following from the Terminal window:

rm -rf ~/Library/PreferencePanes/My*
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo 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*
sudo rm /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment