Loading

mac 卸载MySQL5.7

 

官网下载的MySQL:

 

sudo rm -rf /usr/local/var/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
# 有就删除,没有就算
sudo vim /etc/hostconfig  (removed the line MYSQLCOM=-YES-)
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*

 

posted @ 2024-03-02 06:50  stono  阅读(72)  评论(0编辑  收藏  举报