卸载软件
卸载mysql
[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
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
[root@localhost /]#rm -f /var/lib/mysql