how to completely remove mysql and php without errors

view story

http://serverfault.com – I really did it this time.. I deleted a database named MySQL in my server. Shortly after MySQL went haywire and now I cannot login as a user to mysql, I cannot re-install mysql, I get an error for every solution I try. So I decided hell with it I'll remove mysql, php and start again. I used rpm -qa | grep mysql but it returned nothing. Even though I installed mysql-server, mysql-client, and mysql-devel as rpm's. When I triedto re-install and then ran /usr/bin/mysqladmin -u root password 'My2Secure$Password' followed by /usr/bin/mysql_secure_installation and then after I entered a password I (HowTos)