Mac OSX 中移除 mysql

2012082219:57
相關要刪除相關檔案、目錄:

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/MySQL*
sudo rm -rf ~/Library/PreferencePanes/MySQL*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
sudo rm /etc/my.cnf


vim /etc/hostconfig
刪除這行 MYSQLCOM=-YES-


另外軟體的安裝記錄:
/Library/Receipts/InstallHistory.plist


PS:
資料庫內容若需要備份
記得打包這個目錄:
/usr/local/mysql/data



  •   joe 於 2016-07-05 14:38 1F
  • 感謝~