1, 删除 MySQL
- sudo apt-get autoremove --purge MySQL-server-5.0
- sudo apt-get remove MySQL-server
- sudo apt-get autoremove MySQL-server
- sudo apt-get remove MySQL-common (非常重要)
上面的其实有一些是多余的, 建议还是按照顺序执行一遍
清理残留数据
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
来源: http://www.bubuko.com/infodetail-3112950.html