Should the enable-relay parameter be enabled to store MySQL's relay log locally?

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

Original topic: 把MySQL的relaylog存放至本地,是否开启enable-relay这个参数?

| username: Hacker_7b2KWuuo

My TiDB version is 7.5.1, and I read in the manual:

In versions 5.4.0 and later, you can enable the relay log by setting enable-relay to true. Starting from version 5.4.0, when the DM-worker binds to the upstream data source, it will check the enable-relay item in the upstream data source configuration. If enable-relay is true, the relay log function will be enabled for that data source.

But I didn’t configure it in the yaml file, and directly executed the command

start-relay -s mysql-replica-01

It also worked normally.

Is the official documentation incorrect?

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

Whether to enable relay log, the default value is false. Starting from DM v2.0.2, this configuration item is deprecated, and the start-relay command must be used to enable relay log.

| username: system | Original post link

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