generated from cotes2020/chirpy-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create 2024-01-11-dbeaver连接clickhouse的时区配置.md
- Loading branch information
1 parent
a10166d
commit 53574a3
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
layout: post | ||
title: "dbeaver连接clickhouse的时区配置" | ||
date: 2024-01-11 10:29:20 +0800 | ||
categories: | ||
- 杂项 | ||
tags: | ||
- dbeaver | ||
- 时区配置 | ||
--- | ||
|
||
dbeaver连接clickhouse的时区问题 | ||
|
||
|
||
这几天需要使用clickhouse, 分析硬件日志。 | ||
日志已经成功导入,进行分析时发现一个问题:怎么时间不正确?少了8小时。 | ||
|
||
然后在网上找答案,方案都说如下: | ||
- 右键->编辑连接->驱动属性 | ||
- 修改`use_server_time_zone=true` | ||
- 修改`use_server_time_zone_for_dates=true` | ||
- 修改`use_time_zone=Shanghai` | ||
然后重启,即可生效。 | ||
|
||
聪明的看官已经看出来了,我这里根本不行。 | ||
|
||
又去google一圈,方案如下: | ||
在恢复上面操作后再进行以下操作, | ||
`窗口->首选项->用户界面` 这里有个时区配置。 设置为`Asia/Shanghai (UTC+08:00)` | ||
|
||
然后重启软件, 即可! 这下就真正解决了。 | ||
|
||
|