Help Center> Data Replication Service> User Guide> Check Items> Database Parameters> Checking Whether the Source Database GTID Is Enabled

Checking Whether the Source Database GTID Is Enabled

MySQL

Table 1 Checking whether the source database GTID is enabled

Check Item

Whether the source database GTID is enabled

Description

The source database GTID must be enabled.

Alarm Cause and Handling Suggestion

Alarm cause: The source database GTID is disabled. To recover faulty migration tasks and destination databases more securely and efficiently, you are advised to enable GTID. Note that switching primary and standby DB instances may lead to the failure of the migration task.

Handling suggestion:

  • If the source database version is MySQL 5.5, ignore this alarm.
  • If the source database version is MySQL 5.6 and later, set the following parameters to enable GTID in the database configuration file. Then, restart the database for the modifications to take effect.
    gtid_mode = on
    log_slave_updates = true
    enforce_gtid_consistency = on