Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: ticdc无法同步tidb数据到doris

[TiDB Usage Environment] Testing
[TiDB Version] v7.5.1
[Doris Version] v2.0.1
[Reproduction Path]
The operation command is as follows:
tiup cdc cli changefeed create \
--server=http://xx.xx.xx.xx:8300 \
--sink-uri="mysql://root:123456@xx.xx.xx.xx:9030/" \
--changefeed-id="tidb-to-doris-task"
[Problem Encountered: Unable to successfully create CDC synchronization task]
[Resource Configuration] Enter TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]
Error Log 1: Error: [CDC:ErrMySQLConnectionError] fail to open MySQL connection: Error 1228 (HY000): errCode = 2, detailMessage = Variable ‘sql_mode’ can’t be set to the value of ‘ALLOW_INVALID_DATES’
Error Log 2: Error: [CDC:ErrMySQLConnectionError] fail to open MySQL connection: Error 1228 (HY000): errCode = 2, detailMessage = Unknown system variable ‘foreign_key_checks’
Parameter Explanation:
- Doris has the sql_mode system variable, but it cannot be set to ‘ALLOW_INVALID_DATES’;
- Doris does not have the foreign_key_checks system variable.
Help: Is it possible to skip the system variable settings when creating the task? The methods found online are ineffective.