1. 删除mysql
-- sudo apt-get autoremove --purge mysql-server-5.5
-- sudo apt-get remove mysql-server
-- sudo apt-get autoremove mysql-server
-- sudo apt-get remove mysql-common
2. 清理残留数据
dpkg -l |grep ^rc|awk ‘{print $2}‘ |sudo xargs dpkg -P
原文地址:http://dahui09.blog.51cto.com/10693267/1710987