使用apt-get install安裝的版本,一般通過如下命令進行清除即可.
sudo rm /var/lib/mysql/ -R
刪除mysql的數(shù)據(jù)文件
sudo rm /etc/mysql/ -R
刪除mqsql的配置文件
sudo apt-get autoremove mysql* --purge
sudo apt-get remove apparmor
自動卸載mysql的程序
但安裝的不是默認(rèn)版本就需要手動卸載.
依次用dpkg --purge ***
1. mysql-common
2. libmysqlclient20
3. libmysqlclient-dev
4.libmysqld-dev
5. mysql-community-client
6. mysql-client
7. mysql-community-source
8. mysql-community-server
進行卸載
依次用sudo dpkg -i ***
1. mysql-common
2. libmysqlclient20
3. libmysqlclient-dev
4.libmysqld-dev
5. mysql-community-client
6. mysql-client
7. mysql-community-source
8. mysql-community-server
進行安裝