Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: ticdc同步不能指定数据库吗
[Test Environment for TiDB]
[TiDB Version]
[Reproduction Path] tiup cdc cli changefeed create --server=http://172.25.16.53:8300 --sink-uri=“mysql://***/top/” --changefeed-id=“simple-replication-task”
[Issue Encountered: Can’t TiCDC specify a database for synchronization?]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]
There are two databases on TiDB, and I only want to sync the “top” database, but CDC syncs all databases.
Check the documentation, your method is incorrect.
Sure, you can directly write the filtering rules in the configuration file.
You can configure it with rules.
Directly specify the rule.
Indeed, according to the documentation, it can be configured through rules.
Sure, you can directly write the filtering rules in the configuration file.
Sure, just match the database name directly.
Just configure the filter.
Sure, you can filter by modifying the configuration file.
Of course, you can. You need to configure the rules. Check the official documentation.
This works, we are using it. Just follow the rules to make a match.
There are configuration files and powerful features.
Sure. Specify in the rule.
Synchronization CDC configuration
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.