Macbook 彻彻底底的卸载MySQL

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

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图标消失:

img

posted @ 2020-02-14 05:26  LeeHua  阅读(624)  评论(0编辑  收藏  举报