91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

clickhouse linux安裝

發布時間:2020-08-03 08:59:29 來源:網絡 閱讀:3739 作者:pgmia 欄目:數據庫

1.安裝curl系統包

#yum install -y curl

2.安裝clickhouse repositories

#curl -s https://packagecloud.io/install/repositories/altinity/clickhouse/script.rpm.sh |bash

3.查詢clickhouse包

#yum list 'clickhouse*'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.bit.edu.cn
  • extras: mirror.bit.edu.cn
  • updates: mirror.bit.edu.cn
    Available Packages
    clickhouse-client.x86_64 1.1.54343-1.el7 Altinity_clickhouse
    clickhouse-compressor.x86_64 1.1.54336-3.el7 Altinity_clickhouse
    clickhouse-debuginfo.x86_64 1.1.54343-1.el7 Altinity_clickhouse
    clickhouse-server.x86_64 1.1.54343-1.el7 Altinity_clickhouse
    clickhouse-server-common.x86_64 1.1.54343-1.el7 Altinity_clickhouse
    clickhouse-test.x86_64 1.1.54343-1.el7 Altinity_clickhouse

4.安裝clickhouse包

#yum install -y 'clickhouse*'

#yum list installed 'clickhouse*'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.bit.edu.cn
  • extras: mirror.bit.edu.cn
  • updates: mirror.bit.edu.cn
    Installed Packages
    clickhouse-client.x86_64 1.1.54343-1.el7 @Altinity_clickhouse
    clickhouse-debuginfo.x86_64 1.1.54343-1.el7 @Altinity_clickhouse
    clickhouse-server.x86_64 1.1.54343-1.el7 @Altinity_clickhouse
    clickhouse-server-common.x86_64 1.1.54343-1.el7 @Altinity_clickhouse
    clickhouse-test.x86_64 1.1.54343-1.el7 @Altinity_clickhouse

5.啟動數據庫

#/etc/init.d/clickhouse-server restart
Start clickhouse-server service: Path to data directory in /etc/clickhouse-server/config.xml: /var/lib/clickhouse/
DONE

6.連接數據庫
#clickhouse-client
ClickHouse client version 1.1.54343.
Connecting to localhost:9000.
Connected to ClickHouse server version 1.1.54343.

:)
:)
:) create database testdb;

CREATE DATABASE testdb

Ok.

0 rows in set. Elapsed: 0.003 sec.

:)

:) use testdb

USE testdb

Ok.

0 rows in set. Elapsed: 0.001 sec.

:)

:) CREATE TABLE arrays_test (s String, arr Array(UInt8)) ENGINE = Memory;

CREATE TABLE arrays_test
(
s String,
arr Array(UInt8)
)
ENGINE = Memory

Ok.

0 rows in set. Elapsed: 0.003 sec.

:)

:) INSERT INTO arrays_test VALUES ('Hello', [1,2]), ('World', [3,4,5]), ('Goodbye', [])

INSERT INTO arrays_test VALUES

Ok.

3 rows in set. Elapsed: 0.060 sec.

:)

:) SELECT * FROM arrays_test

SELECT *
FROM arrays_test

┌─s───────┬─arr─────┐
│ Hello │ [1,2] │
│ World │ [3,4,5] │
│ Goodbye │ [] │
└─────────┴─────────┘

3 rows in set. Elapsed: 0.003 sec.

:)

:) SELECT s, arr FROM arrays_test ARRAY JOIN arr

SELECT
s,
arr
FROM arrays_test
ARRAY JOIN arr

┌─s─────┬─arr─┐
│ Hello │ 1 │
│ Hello │ 2 │
│ World │ 3 │
│ World │ 4 │
│ World │ 5 │
└───────┴─────┘

5 rows in set. Elapsed: 0.003 sec.

:)

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

东丽区| 沐川县| 东宁县| 象州县| 丁青县| 儋州市| 法库县| 留坝县| 睢宁县| 延长县| 游戏| 凤阳县| 喀喇| 福建省| 襄樊市| 图木舒克市| 乌审旗| 安义县| 瓮安县| 富宁县| 板桥市| 皮山县| 宽城| 屯昌县| 万州区| 海丰县| 白银市| 城市| 方山县| 图木舒克市| 五台县| 怀仁县| 巴塘县| 于都县| 锡林浩特市| 年辖:市辖区| 延川县| 浙江省| 奇台县| 竹溪县| 镇坪县|