1. Download CMake (address: https://cmake.org/download/)
2. Unzip the file TAR-ZXVF cmake-3.6.0-rc3.tar.gz
3. Install gcc yum install gcc-c++
4. Switch to the CMake directory CD CMAKE-3.6.0-RC3
5. Execute the Configure file./configure
6. Install make && make install
7. Download mariadb (address: https://downloads.mariadb.org/mariadb/)
8. Unzip the file TAR-ZXVF mariadb-10.1.14.tar.gz
9. Switch to the MARIADB directory CD mariadb-10.1.14
10. Create MySQL user groups and users
Groupadd MySQL
useradd-g MySQL MySQL
11. Create the installation directory and data directory
Mkdir/usr/local/mariadb
Mkdir/usr/local/mariadb/data
Chown-r mysql:mysql/usr/local/mariadb
12. Installing ncurses-devel yum install ncurses-devel
13. Compiling Cmake-dcmake_install_prefix=/usr/local/mariadb-dmysql_datadir=/usr/local/mariadb/data-dmysql_user=mysql- Ddefault_charset=utf8-ddefault_collation=utf8_general_ci
14. Install make && make install
15. Delete old configuration file to copy new file
Rm-f/etc/my.cnf
Cp/usr/local/mariadb/support-files/my-large.cnf/etc/my.cnf
16. Initializing the database
/usr/local/mariadb/scripts/mysql_install_db--user=mysql
16.MARIADB Boot from Boot
Cp/usr/local/mariadb/support-files/mysql.server/etc/init.d/mysqld
Chkconfig--add mysqld
CentOS Compiler Installation MARIADB