rpm -qa|grep -i mysql #查看已经安装的mysql相关包
rpm -ev package_name #package_name包名 比如:mysql-server-5.0.51b-1.el5
卸载后/var/lib/mysql中的/etc/my.cnf会重命名为my.cnf.rpmsave,/var/log/mysqld.log 会重命名为/var/log/mysqld.log.rpmsave,如果确定没用后就手工删除
rpm -qa|grep -i mysql #查看已经安装的mysql相关包
rpm -ev package_name #package_name包名 比如:mysql-server-5.0.51b-1.el5
卸载后/var/lib/mysql中的/etc/my.cnf会重命名为my.cnf.rpmsave,/var/log/mysqld.log 会重命名为/var/log/mysqld.log.rpmsave,如果确定没用后就手工删除