Help Center/ Data Replication Service/ User Guide (Kuala Lumpur Region)/ FAQs/ Real-Time Synchronization/ Can Online DDL Tools Be Used for Real-time Synchronization?
Updated on 2022-08-16 GMT+08:00

Can Online DDL Tools Be Used for Real-time Synchronization?

During table-level incremental synchronization from MySQL to MySQL, you can use Online DDL tools to add or delete columns. Pay attention to the following when using Online DDL:

  • The DRS synchronization mechanism conflicts with the tool. Do not select Incremental DDLs when selecting synchronization objects on the Set Synchronization Task page.
  • Before using Online DDL tools to add columns, perform the corresponding operations in the destination database and then in the source database.
  • When using Online DDL tools to delete columns, perform the corresponding operation in the source database and then in the destination database.

Common online DDL tools:

  • pt-online-schema-change
  • gh-ost