mariadb和安装官方版本和percona的方法基本一致:
yum install ncurses-devel libaio-devel -y
编译参数:
-DCMAKE_INSTALL_PREFIX=/usr/local/mariadb5.5.30 -DMYSQL_DATADIR=/usr/local/mariadb5.5.30/data/ -DENABLED_LOCAL_INFILE=1 -DENABLED_PROFILING=1 -DWITH_DEBUG=0 -DWITH_SSL=bundled -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1
make -j 4 //-j指定用于编译的CPU核数,可以加快编译速度
make install
转载于:https://blog.51cto.com/weipengfei/1159533