溫馨提示×

mac如何卸載mysql服務(wù)器

九三
722
2021-02-10 14:10:33
欄目: 云計(jì)算

mac如何卸載mysql服務(wù)器

在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.*

0