Linux 删除 Mysql 并重新安装

来源:互联网 时间:2017-07-27



```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
```

相关阅读:
Top