找出所有和mysql相关的软件
https://anyun.org/a/tag/dpkg/ --get-https://anyun.org/a/tag/selections/ | grep mysql
逐一卸载它们
apt-get --https://anyun.org/a/tag/purge/ remove mysql-server
apt-get --purge remove mysql-client
apt-get --purge remove mysql-https://anyun.org/a/tag/community/-server-core
apt-get --purge remove mysql-https://anyun.org/a/tag/community/-server
最后呢用以下列命令最后在清理一遍
# 找出mysql相关的残余文件或目录
find / -name "mysql"
# 一一删除
rm -rf 文件或目录路径
# 最后再来一遍自动清理
apt-get https://anyun.org/a/tag/autoremove/
apt-get https://anyun.org/a/tag/autoclean/