|
|
@ -30,3 +30,23 @@ set global gtid_mode=ON;
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### 二、source配置
|
|
|
|
### 二、source配置
|
|
|
|
|
|
|
|
```text
|
|
|
|
|
|
|
|
source {
|
|
|
|
|
|
|
|
MySQL-CDC {
|
|
|
|
|
|
|
|
base-url = "jdbc:mysql://172.31.51.244:3306/bjpt_v4_wlmq"
|
|
|
|
|
|
|
|
username = "manager"
|
|
|
|
|
|
|
|
password = "manager2!@#"
|
|
|
|
|
|
|
|
database-names = ["bjpt_v4_wlmq"]
|
|
|
|
|
|
|
|
table-names = ["bjpt_v4_wlmq.ryhcs_t_bqgl"]
|
|
|
|
|
|
|
|
startup.mode = "initial"
|
|
|
|
|
|
|
|
schema-changes.enabled = true
|
|
|
|
|
|
|
|
server-id = "6500-7500"
|
|
|
|
|
|
|
|
table-names-config = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
table = "bjpt_v4_wlmq.ryhcs_t_bqgl"
|
|
|
|
|
|
|
|
primaryKeys = ["ID"]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|