标签:org number serve ring com 配置文件 ber script ice
先查看原有mariadb并移除
1、卸载mariadb:yum remove mariadb
2、删除配置文件:rm -f /etc/my.cnf
3、删除数据目录:rm -rf /var/lib/mysql/
vi /etc/yum.repos.d/MariaDB.repo
添加一下内容
[mariadb]
name = MariaDB
baseurl = http://mirrors.aliyun.com/mariadb/yum/10.4/centos7-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
enabled=1
gpgcheck=1
yum -y install MariaDB-server MariaDB-client
标签:org number serve ring com 配置文件 ber script ice
原文地址:https://www.cnblogs.com/Dfrank/p/11902196.html