Last active
December 17, 2015 08:39
-
-
Save tancnle/5581326 to your computer and use it in GitHub Desktop.
Remove MySQL from MacOSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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