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