clickhouse修改时区

clickhouse时区设置

sudo vim /etc/clickhouse-server/config.xml

<timezone>Asia/Shanghai</timezone>

保存,重启服务

sudo service clickhouse-server restart

测试:

bigdata@server01:~$ clickhouse-client
ClickHouse client version 18.14.13.
Connecting to localhost:9000.
Connected to ClickHouse server version 18.14.13 revision 54409.

server01 :) select Now();

SELECT Now()

┌───────────────Now()─┐
│ 2018-11-09 14:08:21 │
└─────────────────────┘

1 rows in set. Elapsed: 0.010 sec.

上一篇:带你读《Java程序设计与计算思维》之二:认识数据处理与表达式


下一篇:Mysql高级查询 内连接和外连接详解