CentOS 系统 删除mysql 出现以下提示
之前删除过自带的mysql ,后来安装了5.0.22 的tar 包,装完后无法启动,google了一圈还是没法启动,直接rm -rf 删除了文件夹, 又用系统光盘安装了原来的的mysql,但也未能启动成功,N多天以后,现在想再试一下5.0.22的安装 发现自带的无法卸载掉.要怎样解决.为什么会出现这样的提示.
[root@localhost local]# rpm -e mysql
error: Failed dependencies:
libmysqlclient.so.14 is needed by (installed) mod_a uth_mysql-2.6.1-2.2.i386
libmysqlclient.so.14 is needed by (installed) php-m ysql-4.3.9-3.9.i386
libmysqlclient.so.14 is needed by (installed) perl- DBD-MySQL-2.9004-3.1.i386
libmysqlclient.so.14 is needed by (installed) mysql -server-4.1.12-3.RHEL4.1.i386
libmysqlclient_r.so.14 is needed by (installed) mys ql-server-4.1.12-3.RHEL4.1.i386
mysql = 4.1.12-3.RHEL4.1 is needed by (installed) m ysql-bench-4.1.12-3.RHEL4.1.i386
mysql = 4.1.12-3.RHEL4.1 is needed by (installed) m ysql-server-4.1.12-3.RHEL4.1.i386
------解决方案--------------------因为下面这些包依赖于 mysql 这个包
你删除了 mysql 其他包就可能不能用了
加上 --nodeps
rpm -e --nodeps mysql
或者用yum删除 它会自动解决依赖
yum remove mysql