分类 macOS 下的文章

#先在系统偏好设置中停止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.*

#删除安装时添加的环境变量
vim ~/.bash_profile

- 阅读剩余部分 -