Macbook 彻彻底底的卸载MySQL

翡翠谷 2020-02-14

在终端,一行一行输入下面的命令即可:

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/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*

上面的命令都实现后,系统偏好设置中的MySQL图标消失:

Macbook 彻彻底底的卸载MySQL

相关推荐