linux 卸载源码方式安装的mysql_linux下卸载mysql rpm安装方式和源码安装方式的两种方法 | 学步园...

转自http://hi.baidu.com/myphpzone/blog/item/562e496f0dfbb1d680cb4a2d.html

linux下MySQL卸载方法

一.源码安装的卸载方法:

到源码目录,如果可以运行make uninstall就可以卸载。如果没有,就直接删除。

如果是./configure --prefix指定了目录用 rm -rf 目录名 删除

-------------------------------------------------------------

[root@localhost ~]# cd /usr/local/src/mysql-5.1.45

[root@localhost mysql-5.1.45]# make uninstall

[root@localhost mysql-5.1.45]# cd ..

[root@localhost src]# rm -rf mysql-5.1.45

[root@localhost src]# cd ..

[root@localhost local]# ls

bin etc games include lib libexec mysql sbin share src web

[root@localhost local]# rm -rf mysql/

[root@localhost local]# ls

bin etc games include lib libexec sbin share src web

[root@localhost local]#

-------------------------------------------------------------

二.rpm方式安装的卸载方法:

查看是否安装mysql的命令

rpm -qa | grep mysql

然后 逐个使用 rpm -e mysq-* 卸载

如果出现

error: Failed dependencies:

libmysqlclient.so.10 is needed by (installed) libdbi-dbd-mysql-0.6.5-10.RHEL4.1.i386

libmysqlclient.so.10 is needed by (installed) MySQL-python-1.0.0-1.RHEL4.1.i386

libmysqlclient.so.10 is needed by (installed) MyODBC-2.50.39-21.RHEL4.1.i386

libmysqlclient.so.10 is needed by (installed) qt-MySQL-3.3.3-9.3.i386

mysqlclient10 is needed by (installed) MySQL-python-1.0.0-1.RHEL4.1.i386

mysqlclient10 = 3.23.58-4.RHEL4.1 is needed by (installed) mysqlclient10-devel-3.23.58-4.RHEL4.1.i386

时,使用 --nodeps 参数,如:

rpm -e mysqlclient10-devel-3.23.58-4.RHEL4.1 --nodeps

rpm -e mysqlclient10-3.23.58-4.RHEL4.1 --nodeps

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值