Created
March 19, 2019 16:22
-
-
Save nguyenhuucam91/fd572c0de57345806651d20c1ce9c187 to your computer and use it in GitHub Desktop.
Uninstall mysql Homebrew
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
ps -ax | grep mysql | |
stop and kill any MySQL processes | |
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 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* | |
restart your computer just to ensure any MySQL processes are killed | |
try to run mysql, it shouldn't work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment