Linux 删除 Mysql 并重新安装

来源:转载



```bash
删除 mysql 前 先删除
/var/lib/mysql
还有
/etc/mysqlsudo rm /var/lib/mysql/ -R
sudo rm /etc/mysql/ -R
sudo apt-get autoremove mysql* --purge
sudo apt-get remove apparmor
sudo apt-get install mysql-server mysql-common
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
```

分享给朋友:
您可能感兴趣的文章:
随机阅读: