Step 1: List the mysql rpm which is installed on server
[root@localhost ~]# rpm -qa | grep mysql mysql-5.0.95-5.el5_9 mysql-server-5.0.95-5.el5_9Step 2: Remove Mysql
[root@localhost ~]# yum remove mysql-5.0.95-5.el5_9
Step 3: Search for Mysql Related Files on server
[root@localhost ~]# find / -iname '*mysql*'
Step 4: Remove all mysql related files
[root@localhost ~]# find / -iname ‘*mysql*’ -exec rm -rf {} \;
Step 5: Remove this folder
[root@localhost ~]# rm -rf /var/lib/mysql
Complete!
No comments:
Post a Comment