Skip to content

Commit

Permalink
zh: update target settings in config file (#445)
Browse files Browse the repository at this point in the history
* Update task-configuration-file-full.md

* Update zh/task-configuration-file-full.md

Co-authored-by: Charlotte Liu <37295236+CharLotteiu@users.noreply.github.com>

Co-authored-by: Charlotte Liu <37295236+CharLotteiu@users.noreply.github.com>
  • Loading branch information
lance6716 and CharLotteiu authored Oct 27, 2020
1 parent 59e0a46 commit b71ac21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zh/task-configuration-file-full.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ target-database: # 下游数据库实例配置
user: "root"
password: "/Q7B9DizNLLTTfiZHv9WoEAKamfpIUs=" # 推荐使用经 dmctl 加密后的密码
max-allowed-packet: 67108864 # 设置 DM 内部连接 TiDB 服务器时,TiDB 客户端的 "max_allowed_packet" 限制(即接受的最大数据包限制),单位为字节,默认 67108864 (64 MB)
# 该配置项从 DM v2.0.0 版本起弃用,DM 会自动获取连接 TiDB 的 "max_allowed_packet"
session: # 设置 TiDB 的 session 变量,在 v1.0.6 版本引入。更多变量及解释参见 `https://docs.pingcap.com/zh/tidb/stable/system-variables`
sql_mode: "ANSI_QUOTES,NO_ZERO_IN_DATE,NO_ZERO_DATE"
tidb_skip_utf8_check: 1
sql_mode: "ANSI_QUOTES,NO_ZERO_IN_DATE,NO_ZERO_DATE" # 从 DM v2.0.0 版本起,如果配置文件中没有出现该项,DM 会自动从下游 TiDB 中获得适合用于 "sql_mode" 的值。手动配置该项具有更高优先级
tidb_skip_utf8_check: 1 # 从 DM v2.0.0 版本起,如果配置文件中没有出现该项,DM 会自动从下游 TiDB 中获得适合用于 "tidb_skip_utf8_check" 的值。手动配置该项具有更高优先级
tidb_constraint_check_in_place: 0
security: # 下游 TiDB TLS 相关配置
ssl-ca: "/path/to/ca.pem"
Expand Down

0 comments on commit b71ac21

Please sign in to comment.