在mac中卸載mysql服務器的方法
1.首先,在mac操作界面中,點擊左側菜單欄中的“Launchpad”選項;
2.進入Launchpad選項后,點擊“其他”,雙擊打開“終端”;
3.mac終端打開后,在終端中執行以下命令停止mysql服務;
sudo /Library/StartupItems/mysqlCOM/mysqlCOM stop
4.mysql服務停止后,在終端中執行以下命令即可卸載mysql服務;
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/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.mysql.*