Last active
January 17, 2019 21:58
-
-
Save stillfinder/71c8fe0f32f7432bf7c433efc027b06e to your computer and use it in GitHub Desktop.
Uninstall MySql on Mac
This file contains hidden or 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
brew remove mysql | |
brew cleanup | |
sudo rm /usr/local/mysql | |
sudo rm -rf /usr/local/var/mysql | |
sudo rm -rf /usr/local/mysql* | |
sudo rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist | |
sudo rm -rf /Library/StartupItems/MySQLCOM | |
sudo rm -rf /Library/PreferencePanes/My* | |
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist | |
#(Edit /etc/hostconfig) sudo nano /etc/hostconfig (Remove line MYSQLCOM=-YES) or run the next line | |
sudo sed -i -e 's/'"MYSQLCOM=-YES"'/'""'/g' /etc/hostconfig | |
rm -rf ~/Library/PreferencePanes/My* | |
sudo rm -rf /Library/Receipts/mysql* | |
sudo rm -rf /Library/Receipts/MySQL* | |
sudo rm -rf /var/db/receipts/com.mysql.* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment