[root@localhost /]#rpm -qa|grep -i mysql
MySQL-server-community-5.1.44-1.rhel4.i386.rpm
MySQL-client-community-5.1.44-1.rhel4.i386.rpm
[root@localhost /]#rpm -e MySQL-server-community-5.1.44-1.rhel4.i386.rpm
[root@localhost /]#rpm -e MySQL-client-community-5.1.44-1.rhel4.i386.rpm
[root@localhost /]#rm -f /etc/my.cnf
[root@localhost /]#rm -f /var/lib/mysql