teach you to compile and install MARIADB

Source: Internet
Author: User

What is MARIADB?

MARIADB is a branch of MySQL that has been separated (MySQL was acquired by Sun and Oracle) due to the possibility that Oracle could be closed to MySQL.

But aside from being a "down substitute" for MySQL, MARIADB includes some of the new features that make it better than MySQL.

Website description

The instructions on this page would help you compile MariaDB from source. Links to more complete instructions for specific platforms can is found on the source page.

First, get a copy of the MariaDB source.

Next, prepare your system to is able to compile the source.

If you don't want to run MariaDB as yourself and then you should create a mysql user. The example below uses this user.

Using CMake (MariaDB starting with 5.5)

MariaDB 5.5 and above is compiled using cmake. You can configure your build simply by running cmake without any special options, like

CMake.

But if you want it to is configured exactly as we do for our releases, use

CMake. -dbuild_config=mysql_release

All cmake configuration options for MariaDB can is displayed with:

CMake. -lh

To build and install MariaDB after running cmake use

Makesudo make Install

If the commands above fail, you can enable more than compilation information by doing:

VERBOSE=1

Above excerpt from: https://mariadb.com/kb/en/mariadb/generic-build-instructions/

CMake options are similar to MySQL's CMake for reference (Chinese documents): http://www.blogjava.net/kelly859/archive/2012/09/04/387005.html

Test Practice Compilation Practice

#解压

tarxfz mariadb-10.0.16.tar.gz

#进入安装目录

cdmariadb

#配置

cmake . -DCMAKE_INSTALL_PREFIX=/opt/waTeam/mariadb-DMYSQL_DATADIR=/home/datas/mariadb/data/-DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci


#编译 about half an hour.

make

#安装

makeinstall
At this point, the MARIADB compilation installation is complete.

teach you to compile and install MARIADB

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.