CentOS7.3 Compiling and installing MariaDB10.2.12

Source: Internet
Author: User
Tags diff openssl

MariaDB10.2.12 detailed tutorial on compiling and installing CentOS7.3

1. Delete CentOS7.3 default database configuration file

    • View the 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
    • Delete the default database configuration file

[Email protected] ~]# rm-rf/etc/my.cnf/etc/my.cnf.d/
    • View the default database configuration file again

[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

    • Inquire

[Email protected] ~]# Rpm-qa|grep mariadb-libsmariadb-libs-5.5.52-1.el7.x86_64
    • Unloading

[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

    • Download

[Email protected] soft]# wget https://downloads.mariadb.org/interstitial/mariadb-10.2.12/source/mariadb-10.2.12.tar.gz
      • Extract

    TAR-ZXVF mariadb-10.2.12.tar.gz


    CentOS7.3 Compiling and installing MariaDB10.2.12

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.