From 45fd69692f2e99a0f0deb98709abb9688cced007 Mon Sep 17 00:00:00 2001 From: empcl <1515827454@qq.com> Date: Mon, 8 Aug 2022 22:22:41 +0800 Subject: [PATCH] [docs] Correct the data type of 'server-id' option to String (#1444) Co-authored-by: chenlei677 --- docs/content/connectors/mysql-cdc(ZH).md | 2 +- docs/content/connectors/mysql-cdc.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/connectors/mysql-cdc(ZH).md b/docs/content/connectors/mysql-cdc(ZH).md index f77ce801f..d54054813 100644 --- a/docs/content/connectors/mysql-cdc(ZH).md +++ b/docs/content/connectors/mysql-cdc(ZH).md @@ -175,7 +175,7 @@ Flink SQL> SELECT * FROM orders; server-id optional (none) - Integer + String 读取数据使用的 server id,server id 可以是个整数或者一个整数范围,比如 '5400' 或 '5400-5408', 建议在 'scan.incremental.snapshot.enabled' 参数为启用时,配置成整数范围。因为在当前 MySQL 集群中运行的所有 slave 节点,标记每个 salve 节点的 id 都必须是唯一的。 所以当连接器加入 MySQL 集群作为另一个 slave 节点(并且具有唯一 id 的情况下),它就可以读取 binlog。 默认情况下,连接器会在 5400 和 6400 之间生成一个随机数,但是我们建议用户明确指定 Server id。 diff --git a/docs/content/connectors/mysql-cdc.md b/docs/content/connectors/mysql-cdc.md index aa03b0e66..4053fcd95 100644 --- a/docs/content/connectors/mysql-cdc.md +++ b/docs/content/connectors/mysql-cdc.md @@ -176,7 +176,7 @@ Connector Options server-id optional (none) - Integer + String A numeric ID or a numeric ID range of this database client, The numeric ID syntax is like '5400', the numeric ID range syntax is like '5400-5408', The numeric ID range syntax is recommended when 'scan.incremental.snapshot.enabled' enabled. Every ID must be unique across all currently-running database processes in the MySQL cluster. This connector joins the MySQL cluster