MariaDB10.2.12 detailed tutorial on compiling and installing CentOS7.3
1. Delete CentOS7.3 default database configuration file
[Email protected] ~]# Find-h/etc/| grep my.c/etc/pki/tls/certs/make-dummy-cert/etc/pki/tls/certs/renew-dummy-cert/etc/my.cnf.d/etc/my.cnf.d/ Mysql-clients.cnf/etc/my.cnf
[Email protected] ~]# rm-rf/etc/my.cnf/etc/my.cnf.d/
[Email protected] ~]# Find-h/etc/| grep My.c/etc/pki/tls/certs/make-dummy-cert/etc/pki/tls/certs/renew-dummy-cert
So far, the system has minimized the installation of the database configuration file has been removed clean!
2. Uninstall system comes with Mariadb-libs
[Email protected] ~]# Rpm-qa|grep mariadb-libsmariadb-libs-5.5.52-1.el7.x86_64
[Email protected] ~]# rpm-e mariadb-libs-5.5.52-1.el7.x86_64--nodeps
Install related Packages
[[email protected] ~]# yum -y install libaio [[email protected] ~ ]# yum -y install libaio-devel [[email protected] ~]# yum -y install bison [[email protected] ~]# yum -y install bison-devel [[email protected] ~]# yum -y install zlib-devel [[email protected] ~]# yum -y install openssl[[email protected] ~]# yum - y install openssl-devel [[email protected] ~]# yum -y install ncurses [[email protected] ~]# yum -y install ncurses-devel[[email Protected] ~]# yum -y install libcurl-devel[[email protected] ~]# yum -y install libarchive-devel [[email protected] ~]# yum -y install boost [[email p rotected] ~]# yum -y install boost-devel [[email protected] ~]# yum -y install wget[[email protected] ~]# yum -y install Gcc [[email protected] ~]# yum -y install gcc-c++[[email protected] ~]# yum -y install make[[email protected] ~]# yum -y install cmake[[email protected] ~]# yum -y install perl[[email Protected] ~]# yum -y install kernel-headers[[email protected] ~]# yum -y install kernel-devel [[email protected] ~]# yum -y install pcre-devel
If Yum is in some circumstances (intranet) can not be connected to the external network in the case of NetEase open source image search to download the corresponding RPM package to install NetEase open source image address:
http://mirrors.163.com/centos/7/os/x86_64/Packages/
rpm -ivh your-package.rpm ---installing RPM package rpm -uvh your-package.rpm ---upgrade RPM package rpm -q package-name ---Check if the package is installed rpm -e package-name --nodeps ---Uninstall a package do not check dependencies
Automatically resolve dependencies
Yum Localinstall xxx.rpm
3. Create a home directory to store the package directory
Here the catalogue name can be arbitrarily
[[email protected] ~]# mkdir soft[[email protected] ~]# CD soft
4. MARIADB website Copy source package link address and download unzip
[Email protected] soft]# wget https://downloads.mariadb.org/interstitial/mariadb-10.2.12/source/mariadb-10.2.12.tar.gz
TAR-ZXVF mariadb-10.2.12.tar.gz
CentOS7.3 Compiling and installing MariaDB10.2.12