centos 7 安装mariadb

系统:centos 7

数据库版本:mariadb 10.2.14.tar.gz

1.删除CentOS7 默认数据库配置文件

[root@localhost ~]# rm -rf /etc/my.cnf /etc/my.cnf.d/

2.卸载系统自带mariadb-libs 

[root@localhost ~]# rpm -qa|grep mariadb-libs 
mariadb-libs-5.5.52-1.el7.x86_6
[root@localhost ~]# rpm -e mariadb-libs-5.5.52-1.el7.x86_64 --nodeps

3 安装相关包  https://segmentfault.com/a/1190000009909776

yum -y install libaio libaio-devel bison bison-devel zlib-devel openssl openssl-devel ncurses ncurses-devel \

libcurl-devel  libarchive-devel  boost   boost-devel   lsof  wget  gcc   gcc-c++  make  cmake  perl  kernel-headers kernel-devel pcre-devel   

4---

猜你喜欢

转载自www.cnblogs.com/powpoia/p/8995170.html