1. Get the mysql installed rpm and its dependency.
2. Above query return some result as shown and then remove all rpms i.e. return by query
OR [remove them one by one]
3. After uninstall rpm check for the directory existence at path /var/lib/mysql if exists remove directory.
[root@localhost ~]# rpm -qa | grep -i mysql MySQL-devel-* MySQL-test-* MySQL-server-* MySQL-client-* MySQL-shared-* MySQL-shared-compat-* MySQL-embedded-*
2. Above query return some result as shown and then remove all rpms i.e. return by query
[root@localhost ~]# rpm -e MySQL-*
OR [remove them one by one]
[root@localhost ~]# rpm -e MySQL-devel-* (full rpm name) [root@localhost ~]# rpm -e MySQL-test-* [root@localhost ~]# rpm -e MySQL-server-* [root@localhost ~]# rpm -e MySQL-client-* [root@localhost ~]# rpm -e MySQL-shared-* [root@localhost ~]# rpm -e MySQL-shared-compat-* [root@localhost ~]# rpm -e MySQL-embedded-*
3. After uninstall rpm check for the directory existence at path /var/lib/mysql if exists remove directory.
[root@localhost ~]# cd /var/lib [root@localhost lib]# rmdir -p mysql
No comments:
Post a Comment