how to uninstall mysql mac code example
Example 1: brew reinstall mysql
brew uninstall [email protected]
rm -rf /usr/local/var/mysql
rm /usr/local/etc/my.cnf
brew install [email protected]
brew link --force [email protected]
brew services start [email protected]
Example 2: mac uninstall mysql completely
ps -ax | grep mysql
kill -9 [process_id]
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
subl /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*
Try to run mysql, it shouldn't work
Example 3: delete mysql from mac
$ brew uninstall mysql
Uninstalling /usr/local/Cellar/mysql/5.6.19...
Example 4: how to completely uninstall android studio mac
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm -Rf ~/Library/Preferences/com.google.android.*
rm -Rf ~/Library/Preferences/com.android.*
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
rm -Rf ~/.AndroidStudio*