Can TiCDC synchronization not specify a database?

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

Original topic: ticdc同步不能指定数据库吗

| username: TiDBer_8mpI7QNz

[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.

| username: db_user | Original post link

Check the documentation, your method is incorrect.

| username: TiDBer_jYQINSnf | Original post link

Just add a filter.

| username: No_Fear | Original post link

Sure, you can directly write the filtering rules in the configuration file.

| username: 这里介绍不了我 | Original post link

You can configure it with rules.

| username: TiDBer_bpfeWK9K | Original post link

Directly specify the rule.

| username: Kongdom | Original post link

:thinking: Indeed, according to the documentation, it can be configured through rules.

| username: TiDBer_rvITcue9 | Original post link

Sure, you can directly write the filtering rules in the configuration file.

| username: GreenGuan | Original post link

Sure, just match the database name directly.

| username: DBAER | Original post link

Just configure the filter.

| username: kelvin | Original post link

Sure, you can filter by modifying the configuration file.

| username: Hacker_QGgM2nks | Original post link

Of course, you can. You need to configure the rules. Check the official documentation.

| username: Aaronz | Original post link

This works, we are using it. Just follow the rules to make a match.

| username: TiDBer_0p0BD6le | Original post link

There are configuration files and powerful features.

| username: TiDBer_HErMeXDz | Original post link

Sure. Specify in the rule.

| username: 友利奈绪 | Original post link

Learned.

| username: TiDBer_嘎嘣脆 | Original post link

Synchronization CDC configuration

| username: system | Original post link

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