当前位置:网站首页>Tidb CDC create task error unknown or incorrect time zone
Tidb CDC create task error unknown or incorrect time zone
2022-06-11 17:33:00 【On the way to data communication】
One 、 Error details
fail to open MySQL connection: [CDC:ErrMySQLConnectionError]Error 1298: Unknown or incorrect time zone: 'Asia/Shanghai'
Two 、 screening
# land tidb, Check the time zone
show variables like '%time_zone%';
+------------------+---------------+
| Variable_name | Value |
+------------------+---------------+
| system_time_zone | Asia/Shanghai |
| time_zone | SYSTEM |
+------------------+---------------+
# land mysql, Check the time zone
show variables like '%time_zone%';
+------------------+--------+
| Variable_name | Value |
+------------------+--------+
| system_time_zone | CST |
| time_zone | SYSTEM |
+------------------+--------+
Upstream can be found here tidb The time zone of is Asia/Shanghai, And downstream mysql The time zone of is CST
3、 ... and 、 terms of settlement
Method 1 、 Load time zone
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql -p
Method 2 、 take sink Write upstream and downstream time zones
cdc cli changefeed create --sink-uri="mysql://user:[email protected]_ip:mysql_port/?time-zone=CST" --pd=http://pd_ip:pd_port
Official documents : Document address
边栏推荐
- A simple understanding of closures
- Authing 背后的计算哲学
- Biden ordered to enforce the zero trust structure
- spawn ./gradlew EACCES at Process.ChildProcess._handle.onexit
- Authing biweekly news: online application market (5.10-5.22)
- JPA failed to save multiple entities circularly
- 聚类方法汇总
- Service学习笔记02-实战 startService 与bindService
- Mathematical basis of information security Chapter 1 - Division
- 6-2 写文章(*)
猜你喜欢

搜狐全員遭詐騙,暴露哪些問題?

Vscode automatic eslint formatting when saving code

threejs利用indexeddb缓存加载glb模型

Authoring share | understanding saml2 protocol

Authing biweekly news: authing forum launched (4.25-5.8)

Derivation of child numbering formula for nodes numbered I in full k-ary tree

Automated testing selenium

Typescript learning notes (II)

自动化测试-Selenium

How to simplify a lot of if... Elif... Else code?
随机推荐
定制 or 订阅?未来中国 SaaS 行业发展趋势是什么?
6-3 读文章(*)
信息安全数学基础 Chapter 2——同余
Leetcode-- array
子类继承了什么、多态、 向上转型
信息安全数学基础 Chapter 4——二次剩余与方根
Authoring share | understanding saml2 protocol
Test basis: black box test
Computing philosophy behind authoring
活动 | Authing 首次渠道合作活动圆满落幕
Go get downloaded package path
你还不懂线程池的设计及原理吗?掰开揉碎了教你设计线程池
ffmpeg奇偶场帧Interlace progressive命令和代码处理
Set object mapping + scene 6-face mapping + create space in threejs
删除链表的倒数第N个节点---2022/02/22
04_ Feature engineering feature selection
Axi protocol Basics
My C の errors
Automated testing selenium
How does Sister Feng change to ice?