CDC Synchronization for Specified Database

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: cdc 同步指定的库

| username: jeff

[TiDB Usage Environment] Test
[TiDB Version] 4.0.13
In the CDC configuration file, does the rule only synchronize the Jeff database or does it not synchronize Jeff and synchronize everything else?

Filter rules

Filter rule syntax: 表库过滤 | PingCAP 文档中心

rules = [‘Jeff.*’]

My CDC log shows “[2023/07/18 07:41:08.319 +00:00] [WARN] [owner.go:393] [“skip ineligible table”] [tid=6304] [table=jeff.t1]”. It seems that it does not synchronize all tables under the Jeff database! How can I synchronize only the tables under the Jeff database?

| username: tidb菜鸟一只 | Original post link

In the rules, it specifies which tables to synchronize, not which tables to block. If you want to block tables, it should be like this: rules=[‘!jeff.*’]

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.