CentOS Compiler Installation MARIADB

Source: Internet
Author: User

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

Related Article

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.