Uninstall MySQL in MacOSX

准备工作

  • 备份数据
  • 停止MySQL Server

卸载开始

1
2
3
4
5
6
7
8
9
10
11
12
sudo vim /etc/hostconfig (remove the line MYSQLCOM=-YES-)
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo 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*
sudo rm /etc/my.cnf
0%