Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: ticdc创建同步任务报无法访问数据库

[TiDB Usage Environment] Production Environment
[TiDB Version] Source TiDB Cluster (v6.1.0) Target TiDB Cluster (v6.5.0)
[Reproduction Path] Use the tiup cdc cli changefeed create
command to synchronize data from the v6.1.0 cluster to the v6.5.0 cluster
[Encountered Issue: Phenomenon and Impact]
When creating the changefeed task with the command:
tiup cdc cli changefeed create --pd=http://172.16.0.9:2379 --sink-uri="mysql://root:xxx@172.20.0.6:4000" --changefeed-id="simple-replication-task" --config changefeed.toml
It reports the error: Error: [CDC:ErrMySQLConnectionError] fail to open MySQL connection: Error 1045: Access denied for user 'root'@'172.16.0.9' (using password: YES)
.
172.16.0.9 is the source database and the current host address.
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]