markdown 在Centos 7.2上安装MariaDB 1.08 Columnstore

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在Centos 7.2上安装MariaDB 1.08 Columnstore相关的知识,希望对你有一定的参考价值。

Following instructions at

* https://mariadb.com/kb/en/mariadb/preparing-for-columnstore-installation/
* https://mariadb.com/kb/en/mariadb/installing-and-configuring-mariadb-columnstore/

Install

```sh
sudo yum -y install boost expect perl perl-DBI openssl zlib snappy libaio
wget https://downloads.mariadb.com/ColumnStore/1.0.8/centos/x86_64/7/mariadb-columnstore-1.0.8-1-centos7.x86_64.rpm.tar.gz
tar xzf mariadb-columnstore-1.0.7-1-centos7.x86_64.rpm.tar.gz
sudo rpm -ivh mariadb-columnstore*.rpm
sudo /usr/local/mariadb/columnstore/bin/postConfigure
```

Add useful aliases found in `/usr/local/mariadb/columnstore/bin/columnstoreAlias` to your `~/.bashrc`

```sh
alias mcsmysql='/usr/local/mariadb/columnstore/mysql/bin/mysql --defaults-file=/usr/local/mariadb/columnstore/mysql/my.cnf'
alias mcsadmin=/usr/local/mariadb/columnstore/bin/mcsadmin
alias cpimport=/usr/local/mariadb/columnstore/bin/cpimport
alias tdebug='tail -f /var/log/mariadb/columnstore/debug.log'
alias tinfo='tail -f /var/log/mariadb/columnstore/info.log'
```

Configure
```sh
# setup cross engine join support
sudo /usr/local/mariadb/columnstore/bin/setConfig CrossEngineSupport Host 127.0.0.1
sudo /usr/local/mariadb/columnstore/bin/setConfig CrossEngineSupport Port 3306
sudo /usr/local/mariadb/columnstore/bin/setConfig CrossEngineSupport User root
sudo /usr/local/mariadb/columnstore/bin/setConfig CrossEngineSupport Password ""
```

Suggested config options in `/usr/local/mariadb/columnstore/mysql/my.cnf`
```
[mysqld]
max_allowed_packet = 32M
max_length_for_sort_data=8388608
character-set-server=utf8
collation-server=utf8_bin
init-connect='SET NAMES utf8'
sql_mode=TRADITIONAL
```

Restart
```sh
/usr/local/mariadb/columnstore/bin/mcsadmin restartsystem y
```

Connect
```sh
mcsmysql
```

Manage
```sh
mcsadmin
mcsadmin getsystemstatus
mcsadmin help
```

Create a new user
```sql
create user 'username'@'hostname' identified by 'password';
grant ALL on infinidb_vtable.* to 'username'@'hostname';
flush privileges;
```

以上是关于markdown 在Centos 7.2上安装MariaDB 1.08 Columnstore的主要内容,如果未能解决你的问题,请参考以下文章

在 Centos 7 上安装 PHP 7.2

在 CentOS 7.2 上安装 ODOO 10 (2018-10-04 持续更新)

如何在 CentOS 7.2 上使用 yum 安装 gcc 5.3?

Zabbix 3.4 在CentOS 7.2 上安装详细步骤

markdown 安装Oracle PHP扩展(oracle OCI8) - 适用于Mac OS 10.12.6的即时客户端 - 自制环境 - 在PHP 7.2上

CentOS 7.2安装Jenkins自动构建Git项目