正常如果APT的话不好卸载干净。用:
1 2 3 4 5 6 |
dpkg --list|grep mysql sudo apt-get remove mysql-common sudo apt-get autoremove --purge mysql-server-"version" dpkg -l|grep ^rc|awk '{print$2}'|sudo xargs dpkg -P dpkg --list|grep mysql sudo apt-get autoremove --purge mysql-apt-config |
参考资料:
1、https://dba.stackexchange.com/questions/302922/downgrade-mysql-8-0-27-to-8-0-26-ubuntu-20-04
转载时请保留出处,违法转载追究到底:进城务工人员小梅 » Ubuntu完全卸载MySQL