在mac中卸載mysql服務(wù)器的方法
1.首先,在mac操作界面中,點(diǎn)擊左側(cè)菜單欄中的“Launchpad”選項(xiàng);
2.進(jìn)入Launchpad選項(xiàng)后,點(diǎn)擊“其他”,雙擊打開“終端”;
3.mac終端打開后,在終端中執(zhí)行以下命令停止mysql服務(wù);
sudo /Library/StartupItems/mysqlCOM/mysqlCOM stop
4.mysql服務(wù)停止后,在終端中執(zhí)行以下命令即可卸載mysql服務(wù);
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.*