前提:
本文说明的MySQL是通过brew进行安装的。
通过Homebrew安装MySQL
brew install mysql
卸载MySQL
确保已经停止了MySQL的服务。
- 通过brew卸载MySQL
brew remove mysql
brew cleanup
- 删除相关文件
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -fr /usr/local/var/mysql
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
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*
引用:
https://community.jaspersoft.com/wiki/uninstall-mysql-mac-os-x
网友评论