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