Help Center/ Data Replication Service/ User Guide (Ankara Region)/ Troubleshooting/ Solutions to Failed Check Items/ Database Parameters/ Checking Whether the sql_mode Values of the Source and Destination Databases Are the Same
Updated on 2024-04-11 GMT+08:00

Checking Whether the sql_mode Values of the Source and Destination Databases Are the Same

MySQL

Table 1 Checking whether the sql_mode values of the source and destination databases are the same

Check Item

Whether the sql_mode values of the source and destination databases are the same

Description

Check whether the sql_mode values of source and destination databases are the same. If they are inconsistent, the migration may fail.

Failure Cause and Handling Suggestion

  • If you are migrating data to the cloud, perform the following operations:

    Failure cause: The sql_mode values of the source and destination databases must be the same.

    Handling suggestion: Change the sql_mode values of the destination database to the same as those of the source database, abd ensure that both the source and destination databases do not have the forbidden sql_mode values. For details, see "Modifying Parameters in a Parameter Group". If MyISAM tables are to be migrated, the sql_mode values in the destination database cannot contain no_engine_substitution.

  • If you are migrating data out of the cloud, perform the following operations:

    Item to be confirmed: The sql_mode values of the source and destination databases must be the same.

    Handling suggestions: Change the sql_mode values of the destination database to the same as those of the source database. Ensure that both the source and destination databases do not have the forbidden sql_mode values.