在MariaDB中构建ColumnStore
这是一个构建和启动本地ColumnStore安装的说明,用于调试目的。
安装依赖项
对于CentOS:
yum -y groupinstall "Development Tools" \ && yum -y install bison ncurses-devel readline-devel perl-devel openssl-devel cmake libxml2-devel gperf libaio-devel libevent-devel python-devel ruby-devel tree wget pam-devel snappy-devel libicu \ && yum -y install vim wget strace ltrace gdb rsyslog net-tools openssh-server expect \ && boost perl-DBI
获取源代码
git clone https://github.com/mariadb-corporation/mariadb-columnstore-server.git cd mariadb-columnstore-server/ git clone https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
编译
cmake . -DCMAKE_BUILD_TYPE=Debug \ -DWITHOUT_MROONGA:bool=1 -DWITHOUT_TOKUDB:bool=1 \ -DCMAKE_INSTALL_PREFIX=/usr/local/mariadb/columnstore/mysql make -j10 sudo make install
cd mariadb-columnstore-engine/ cmake . -DCMAKE_BUILD_TYPE=Debug make -j10 sudo make install cd /usr/local/mariadb/columnstore/bin/
配置
确保您没有 /etc/my.cnf
或 /.my.cnf
。
sudo ./postConfigure
回答所有问题时都按“Enter”,除了:
Select the type of System Server install [1=single, 2=multi] (2) >
在这里,回答1
。
访问服务器
source /usr/local/mariadb/columnstore/bin/columnstoreAlias mcsmysql
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.