Download cmakehttps://cmake.org/download/
Unzip the filetar -zxvf cmake-3.6.0-rc3.tar.gz
Installing GCCyum install gcc-c++
Switch to the CMake directorycd cmake-3.6.0-rc3
Execute Configure File./configure
Installationmake && make install
Download mariadbhttps://downloads.mariadb.org/mariadb/
Unzip the filetar -zxvf mariadb-10.1.14.tar.gz
Switch to the MARIADB directorycd mariadb-10.1.14
Create MySQL user groups and users
Groupadd mysqluseradd-g MySQL MySQL
Creating the installation directory and data directory
Mkdir/usr/local/mariadbmkdir/usr/local/mariadb/datachown-r mysql:mysql/usr/local/mariadb
Installing Ncurses-develyum install ncurses-devel
Compilecmake -DCMAKE_INSTALL_PREFIX=/usr/local/mariadb -DMYSQL_DATADIR=/usr/local/mariadb/data -DMYSQL_USER=mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
Installationmake && make install
Delete old configuration file copy new file
Rm-f/etc/my.cnfcp/usr/local/mariadb/support-files/my-large.cnf/etc/my.cnf
Initializing the database
/usr/local/mariadb/scripts/mysql_install_db--user=mysql--basedir=/usr/local/mariadb--datadir=/usr/local/ Mariadb/data
Adding environment variables
MARIADB boot from Cp/usr/local/mariadb/support-files/mysql.server/etc/init.d/mysqldchkconfig--add mysqld
This article from "Programming" blog, declined reprint!
Build and install mariadb under CentOS