mac的mysql怎么卸载?
Mac下卸载mysql的方法:
1、关闭mysql
查看mysql是否启动:ps -ef |grep mysql
输入:kill -9 (./mysqld前面第二个数字,这里是627) 然后回车,关闭mysql。
2、卸载:
在Mac终端使用下面的命令删除所有mysql文件即可
sudo rm /usr/local/mysqlsudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
vim /etc/hostconfig (and removed the line MYSQLCOM=-YES-)
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.*
推荐:MySQL教程
以上是 mac的mysql怎么卸载? 的全部内容, 来源链接: utcz.com/z/539151.html