Mac卸載mysql的方法,Mac卸載mysql方法

來源:互聯網
上載者:User

Mac卸載mysql的方法,Mac卸載mysql方法

這兩天心血來潮,就想Mac上寫PHP,但是需要配置環境,需要用到mysql,開始在網上下載了mysql的安裝包,但是沒看下面的安裝教程,直接就是mysql-5.1.63-osx10.6-x86_64.pkg,MySQL.prefPane,MySQLStartupItem.pkg按順序的安裝了一遍,等我安裝到MySQLStartupItem.pkg這個檔案的時候就出錯了,最簡單的辦法就是卸載瞭然後重新安裝,各種百度能乾淨卸載mysql的方法,發現百度太坑了,文章的內容都是一樣的,

sudo rm -rf /var/db/receipts/com.mysql.*最後這條很多文章都丟了,切記切記。這個文章看了太多了,一百度全是,坑死了,不過還是找到了可以乾淨寫在mysql的方法,不說了直接上代碼:sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.m
sudo vim /etc/hostconfig



相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.