mac 下删除mysql1

本文出处:https://blog.csdn.net/lylzdd/article/details/87858998
1.打开终端窗口
2.使用mysqldump备份你的数据库将文本文件!
3.停止数据库服务器
4.依次执行以下命令,遇到要输密码的输入密码即可
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 /private/var/db/receipts/mysql

你可能感兴趣的:(mac 下删除mysql1)