在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.*
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: mysql怎么筛选出重复数据