查询是否安装
yum list installed|grep mariadb
删除MariaDB软件
yum remove mariadb mariadb-server
删除数据目录,如有改变请参看/etc/my.cnf
rm -rf /var/lib/mysql
删除配置文件
rm /etc/my.cnf方法二: #检查mariadb是否存在 rpm -qa | grep mariadb #mariadb-libs-5.5.60-1.el7_5.x86_64 #卸载 rpm -e --nodeps mariadb-libs-5.5.60-1.el7_5.x86_64 find / -name mysql #/var/lib/pcp/config/pmlogconf/mysql #/usr/lib64/mysql #/usr/share/mysql #手动删除以上目录 rm -rf /var/lib/pcp/config/pmlogconf/mysql rm -rf /var/lib/mysql/ rm -rf /usr/share/mysql/
标签:MariaDB,lib,MySQL,CentOS7,rf,mysql,var,rm,mariadb From: https://www.cnblogs.com/shichq/p/17622226.html