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
#解压
tar xfz mariadb-10.0.16. tar .gz |
#进入安装目录
#配置
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.
#安装
At this point, the MARIADB compilation installation is complete.
teach you to compile and install MARIADB