CentOS   发布时间:2022-05-09  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了CentOS下卸载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

大佬总结

以上是大佬教程为你收集整理的CentOS下卸载MySQL的二种方法全部内容,希望文章能够帮你解决CentOS下卸载MySQL的二种方法所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: