天天看點

ubuntu18.04解除安裝mysql資料庫

檢視mysql的依賴項:

dpkg --list|grep mysql

ubuntu18.04解除安裝mysql資料庫

解除安裝指令:

sudo apt-get remove mysql-common

ubuntu18.04解除安裝mysql資料庫

解除安裝指令:

sudo apt-get autoremove --purge mysql-server-5.7

ubuntu18.04解除安裝mysql資料庫

删除殘留資料:

dpkg -l|grep ^rc|awk '{print$2}'|sudo xargs dpkg -P

ubuntu18.04解除安裝mysql資料庫

最後,再用第一條指令查詢下是否已經完全解除安裝