using apt
apt-get –purge remove mysql-server
apt-get –purge remove mysql-client
apt-get –purge remove mysql-common
apt-get autoremove
apt-get autoclean
using aptitude (some people claim aptitude does a better job of removing dependencies)
aptitude remove mysql-client
aptitude remove mysql-server
aptitude remove mysql-common
see if anything depends on the installed packages
apt-cache rdepends mysql-server
apt-cache rdepends mysql-client
delete preferences(the next find command will delete everything)
rm -rf /etc/mysql
find all files with “mysql” on / and delete them
find / -iname ‘mysql*’ -exec rm -rf {} \;