1. 程式人生 > >Linux 解除安裝mysql 並且重灌

Linux 解除安裝mysql 並且重灌

首先檢視版本號:sudo mysql -V 下面是版本號:mysql Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using EditLine wrapper執行:apt-get autoremove --purge mysql-server-5.7 // 這一步執行不了,繼續下面的;需要刪除很多檔案:依次執行這三步:sudo apt-get autoremove mysql-serversudo apt-get remove mysql-common sudo dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 重新安裝:sudo apt-get install mysql-server mysql-client 執行mysql :

Linux 徹底解除安裝mysql 並且重灌_MySQL  這表示你已經安裝成功  下面顯示資料庫:

Linux 徹底解除安裝mysql 並且重灌_MySQL