ubuntu18.04彻底卸载删除mysql5.7
在终端查看mysql的依赖项目:
dpkg --list|grep mysql
效果图:
开始卸载
sudo apt-get remove mysql-common
效果图:
卸载
sudo apt-get autoremove --purge mysql-server-5.7
效果图:
删除残留的数据
dpkg -l|grep ^rc|awk '{print$2}'|sudo xargs dpkg -P
效果图:
再次查看mysql的剩余依赖项:
dpkg --list|grep mysql
若还存在依赖则继续删除
sudo apt-get autoremove --purge mysql-apt-config
出现下面这种情况则表明已经删除干净 恭喜你~
其他可供参考的资料:
https://blog.csdn.net/iehadoop/article/details/82961264