如何卸载Centos7自带的mariadb?

2023-06-1319:47:15服务器及运维Comments2,205 views字数 370阅读模式

一般用的centos的系统都会自带一个系统数据库,那就是mariadb,因为没有激活,只有一个安装好的mariadb-libs-5.5.60-1.el7_5.x86_64,可以把mariadb-libs-5.5.60-1.el7_5.x86_64卸载。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/46936.html

①、查找系统自带的mariadb文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/46936.html

rpm -qa | grep mariadb文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/46936.html

如何卸载Centos7自带的mariadb?

我们可以看到是可以查到的,现在把他卸载了;文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/46936.html

②、卸载系统自带的mariadb文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/46936.html

#卸载mariadb文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/46936.html

rpm -e --nodeps mariadb-libs-5.5.60-1.el7-5.x86_64 #卸载完查看还有没有mariadb
rpm -qa | grep mariadb文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/46936.html

如何卸载Centos7自带的mariadb?

这里看已经卸载了;
③、查看my.cnf配置文件
cat /etc/my.cnf
因为默认的mysql的配置文件就是在/etc/的;我们可以看到也是没有my.cnf的。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/46936.html

如何卸载Centos7自带的mariadb?
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/46936.html
  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/yunwei/46936.html

Comment

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定