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

Checking Whether the Source Database Binlog Is Enabled

MySQL Migration

Table 1 Checking whether the source database binlog is enabled

Check Item

Whether the source database binlog is enabled

Description

Check whether binlog is enabled for the source database.

Failure Cause and Handling Suggestion

Failure cause: This item cannot be checked because the source database fails to be connected.

Handling suggestion: Check whether the source database is connected.

Failure cause: Insufficient user permissions

Handling suggestion: Check whether the database user permissions meet the migration requirements.

Failure cause: Internal error

Handling suggestion: Contact Huawei technical support.

Failure cause: The binlog function is disabled on the source database.

Handling suggestion:

  • If you are migrating data to the cloud, perform the following operations to enable the binlog function:
    1. Run the following command to check whether binlog is enabled:
      show variables like "log_bin"\G;

    2. If binlog is disabled, add log-bin = mysql-bin followed by [mysqld] in the MySQL configuration file my.cnf or my.ini.

    3. Restart the database.

  • If you are migrating data out of the cloud, contact technical support.