Resolve the server_id precheck failure
Before Data Transmission Service (DTS) starts incremental data migration between MySQL databases, it prechecks the server_id parameter in the source database. DTS relies on the MySQL binary log (binlog) for incremental data migration, which requires a valid server_id. This topic explains how to fix the server_id value to pass the precheck.
Solution
-
Log on to the server where the source self-managed MySQL database is deployed.
-
Check the current
server_idvalue:show variables like '%server_id%'; -
If
server_idis not an integer greater than 1, set it to a valid value:set global server_id=<id>;Replace
<id>with an integer greater than 1. For example:set global server_id=2;Important-
The
server_idvalue must be an integer greater than 1 and unique across all databases in the replication topology. -
If the database runs in primary/secondary mode, verify that changing
server_iddoes not disrupt the existing primary/secondary replication. -
The
set globalcommand only takes effect at runtime. Update theserver_idvalue in the MySQL configuration file (my.cnformy.ini) to persist the change across database restarts.
-
-
Log on to the and run the precheck again.