因為前段時間ubuntu給我自動更新,好像還在更新著我就給關機了還是怎麼的,mysql就再也用不了了,而且安裝也沒辦法安裝。於是一鼓做氣,把mysql徹底解除安裝了再重灌!
網上找到最好的方法:
我自己修改了下,親測可行:
sudo
apt-get remove mysql-*
dpkg -l |
grep ^rc|
awk''
|sudo
xargs dpkg -p # 清理殘留的資料
sudo
rm -rf /var/lib/mysql /etc/mysql ~/.mysql
sudo deluser mysql
sudo
apt-get autoclean
sudo
apt-get update &&
sudo
apt-get upgrade
sudo
apt-get
install mysql-server mysql-client
Ubuntu上徹底刪除MySQL
做個記錄 1 刪除 mysql 1sudo apt get autoremove purge mysql server 5.0 2sudo apt get remove mysql server 3sudo apt get autoremove mysql server 4sudo apt get ...
ubuntu徹底刪除mysql
sudo apt get autoremove purge mysql server 5.0 sudo apt get remove mysql server sudo apt get autoremove mysql server sudo apt get remove mysql common ...
ubuntu 徹底刪除mysql
刪除 mysql sudo apt get autoremove purge mysql server 5.0 sudo apt get remove mysql server sudo apt get autoremove mysql server sudo apt get remove mysq...