Centos 7 install mariadb

System: centos 7

Database version: mariadb 10.2.14.tar.gz

1. Delete the CentOS7 default database configuration file

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

2. Uninstall the system's own 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 Install related packages 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---

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325319496&siteId=291194637