MySQL Core concept and mariadb compilation installation

Source: Internet
Author: User

Mariadb Installation Method:
①RPM Package:
OS Vendor
Mysql
Universal binary Format
② Source Package

Compile-mode installation mariadb:

Compiling and installing MARIADB

One of the important characteristics of CMake is its independent of the source code (OUT-OF-SOURCE) of the compilation function, that is, the compilation work can be in another specified directory rather than the source directory, which can ensure that the source directory is not affected by any one compilation, so in the same source tree can be many different compilations, such as for different platforms to compile.

1. Compile mariadb-10.0.12 with CMake

1 [[Email protected] ~] #yum Install Cmake-y Installing CMake
2 [[Email protected] ~] #yum Install Libxml2-devel Installing Libxml2-devel
3 [[Email protected] ~] #tar XF mariadb-10.0.12.tar.gz Unzip the source package
4 [[Email protected] ~] #mkdir-pv/mydata/data
5 [[Email protected] ~] #groupadd-R MySQL
6 [[Email protected] ~] #useradd-R MySQL
7 [[Email protected] ~] #chown-R mysql.mysql/mydata/data/
8 [[Email protected] ~] #cd mariadb-10.0.12

If you have previously compiled an error and need to recompile, please delete CMakeCache.txt

Make clean

Rm-cmakecache.txt

1 [[email protected] mariadb-10.0.12] #cmake. -dmysql_datadir=/mydata/data-dwith_ssl=system-dwith_sphinx_storage_engine=1
2 [[email protected] mariadb-10.0.12] #make &&make Install

Note: Since the installation of the new virtual machine is compiled, the installation environment was ignored during the first installation, resulting in CMake error and the need to install "Development tools" "Server Platform Development".

1 #yum Groupinstall "Development Tools" "Server Platform Development"-Y

Initialization

... Pending edit ...

MySQL Core concept and mariadb compilation installation

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.