Synchronization Link | Source Database and Version | Target Database and Version |
MySQL > MySQL | Internet Data Center (IDC)/Self-built MySQL on Cloud Virtual Machine (CVM)/LighthouseDB MySQL | IDC self-built/Self-built MySQL on CVM/LighthouseDB MySQL MySQL from third-party cloud vendors TencentDB for MySQL |
| MySQL from third-party cloud vendors | IDC self-built/Self-built MySQL on CVM/LighthouseDB MySQL MySQL from third-party cloud vendors TencentDB for MySQL |
| TencentDB for MySQL Synchronization between databases under the same Tencent Cloud root account Synchronization between databases under different Tencent Cloud root accounts | IDC self-built/Self-built MySQL on CVM/LighthouseDB MySQL MySQL from third-party cloud vendors TencentDB for MySQL |
MariaDB > MySQL | Self-built MariaDB in the IDC or on CVM | IDC self-built/Self-built MySQL on CVM/LighthouseDB MySQL MySQL from third-party cloud vendors TencentDB for MySQL |
| TencentDB for MariaDB Synchronization between databases under the same Tencent Cloud root account | IDC self-built/Self-built MySQL on CVM/LighthouseDB MySQL MySQL from third-party cloud vendors TencentDB for MySQL |
Percona > MySQL | Self-built Percona in the IDC or on CVM | IDC self-built/Self-built MySQL on CVM/LighthouseDB MySQL MySQL from third-party cloud vendors TencentDB for MySQL |
Feature Category | Sub-feature or Description | Supported Capability |
Sync Object | - | Ordinary object tables, indexes, views, stored procedures, and functions. |
Synchronization type | - | Structure synchronization. Full synchronization (incremental synchronization continues automatically after full synchronization ends). Incremental synchronization. |
Resumable transfer | - | Resumable transfer is partially supported during the full export (it is not supported for structure export or export of tables without primary keys). Resumable transfer is supported for full and incremental imports. |
Key operations for task channels | Retry | Supported. |
| Pause and resumption | Supported. |
| Modifying synchronization configuration (dynamically adding or removing table objects) | Supported. |
| Creating a similar task | Supported. |
| Speed limiting | Supported. |
Synchronization direction | Many-to-one (multiple instances merged into one/multiple tables merged into one) | Supported. |
| One-to-many | Supported. |
| Bidirectional synchronization | Supported. |
| Synchronization within the same instance (only one-to-one mode is supported) | Only data synchronization from MySQL to TencentDB for MySQL is supported. |
Structure synchronization. | Database and table filtering | Supported. |
| Column filtering | Supported. |
| Database and table name mapping | Supported. |
| Column name mapping | Supported. |
Full synchronization | Filtering using the Where clause | Supported. |
Incremental synchronization | Policy for primary key conflicts | Conflict ignoring, conflict error reporting, and conflict overwriting. |
| DML synchronization (INSERT/UPDATE/DELETE) | Supported. |
| DML filtering | Supported. |
| DDL synchronization | DROP DATABASE and ALTER DATABASE. CREATE TABLE, ALTER TABLE, DROP TABLE, TRUNCATE TABLE, and RENAME TABLE. CREATE VIEW and DROP VIEW. CREATE INDEX and DROP INDEX. |
| DDL filtering | Supported. |
| Filtering using the Where clause | Supported. |
| Synchronization at a specified point-in-time | Supported. |
| OnlineDDL | Supported. |
Check on data consistency | Check on the entire instance | Supported. |
| Check on the number of rows | Supported. |
| Sampling check | Supported. |
| Consistency check after filtering using the Where clause supported (independent check) | Supported. |
| Consistency check on specified columns supported (independent check) | Supported. |
__tencentdb__ in the source database. This database records information from data comparison during synchronization. Do not delete this system database.__tencentdb__ database in the source will not be deleted after the synchronization task ends.__tencentdb__ occupies minimal space, approximately 0.01% to 0.1% of the storage capacity of the source database (for example, for a 50 GB source database, the __tencentdb__ system database occupies about 5–50 MB of its storage capacity). It adopts a single-threaded and connection-waiting mechanism, resulting in negligible impacts on the performance of the source database and no resource contention.GRANT RELOAD,LOCK TABLES,REPLICATION CLIENT,REPLICATION SLAVE,SHOW DATABASES,SHOW VIEW,PROCESS,SELECT ON *.* TO 'account'@'%' IDENTIFIED BY 'password';//If the source database is an Alibaba Cloud database, you do not need to grant the SHOW DATABASES permission, but you need to create at least one non-system database. Otherwise, the pre-check task will fail. If the source database is not an Alibaba Cloud database, you need to grant the permission. For how to grant the permission when the source database is an Alibaba Cloud database, visit https://help.aliyun.com/document_detail/96101.html.GRANT ALL PRIVILEGES ON `__tencentdb__`.* TO 'account'@'%';FLUSH PRIVILEGES;#(1) Create an account used for task execution.CREATE USER 'account'@'%' IDENTIFIED BY 'password';#(2) Grant permissions.GRANT RELOAD,LOCK TABLES,REPLICATION CLIENT,REPLICATION SLAVE,SHOW VIEW,PROCESS ON *.* TO 'account'@'%';GRANT ALL PRIVILEGES ON `__tencentdb__`.* TO 'account'@'%';#(3) Grant the SELECT permission.#(3.1) If you select full-instance synchronization, grant the permission to all objects.GRANT SELECT ON *.* TO 'account';#(3.2) If objects for synchronization have been specified, grant permissions only to the corresponding objects.GRANT SELECT ON `mysql`.* TO 'account'@'%';GRANT SELECT ON database to be migrated.* TO 'account';#(4) Grant the refresh permission.FLUSH PRIVILEGES;
DEFINER corresponding to user1 ([DEFINER = user1]) in the source database matches the synchronization account user2. If they do not match, after synchronization, DTS will modify the SQL SECURITY property of user1 in the target database from DEFINER to INVOKER ([INVOKER = user1]), and set DEFINER in the target database to the synchronization account user2 ([DEFINER = synchronization account user2]). Excessively complex view definitions in the source database may cause task failure.CREATE operation in the CREATE TABLE ... AS SELECT statement generates a new independent GTID transaction.STATEMENT format are generated in the source database, data synchronization will fail.ALTER VIEW statements are not supported and will be skipped during synchronization.Operation Type | SQL Statement |
DML | INSERT, UPDATE, and DELETE |
DDL | DROP DATABASE, ALTER DATABASE, CREATE TABLE, ALTER TABLE, DROP TABLE, TRUNCATE TABLE, RENAME TABLE, CREATE VIEW, DROP VIEW, CREATE INDEX, and DROP INDEX. |
Parameter | Description |
Creation Mode | Create new task: Create a task. Create Similar Task: Quickly create a task with the same configuration as the historical task. The settings of the new task, such as the database type and billing mode, are pre-populated to match the historical task. Users can also modify these settings as needed. |
Billing Mode | The yearly/monthly subscription and pay-as-you-go modes are supported. |
Source Instance Type | Select MySQL. It cannot be modified after purchase. |
Source Instance Region | Select the source instance region. It cannot be modified after purchase. |
Target Instance Type | Select MySQL. It cannot be modified after purchase. |
Target Instance Region | Select the target instance region. It cannot be modified after purchase. |
Specification | Select specifications according to your business requirements. Higher specifications deliver better performance. For details, see Billing Overview. |
Tag | Set tag keys and values for synchronization tasks to facilitate efficient management of multiple tasks through tags. |
Task Name | Set it to Name After Creation. The task name is the same as the task ID by default. After the synchronization task is created, the task name can be reset. Set it to Name Now. Enter the task name in the input box below. |
Terms of Service |




Parameter | Description |
Task Name | DTS automatically generates a task name. It is recommended that users modify it to a meaningful name to facilitate task identification. |
Running Mode | Immediate execution: The task will be started immediately once the pre-check passes. Scheduled execution: Set a start time for the task execution. After the pre-check passes, the task is not started immediately, but is started at the scheduled time. |
Automatic Retry | When it is enabled, if a synchronization task is temporarily interrupted due to network exceptions or other issues, DTS will automatically retry and resume the task within the specified time range without requiring manual intervention from users. The supported time range for automatic retries is 5–720 minutes. |
Parameter | Description |
Source Instance Type | Source instance type selected during purchase. It cannot be modified. |
Source Instance Region | Source instance region selected during purchase. It cannot be modified. |
Service Provider | For self-built databases (including self-built databases on CVM), TencentDB instances, and lightweight databases, select Others. For databases from third-party cloud vendors, select the corresponding service provider. |
Access Type | Select the access type based on the deployment of the source database. Different deployment scenarios require different network operations. For details, see Network Preparation Overview. If the source database is a self-built database in the IDC or a database from other cloud vendors, you can set the access type to Public Network/Direct Connect/VPN Access/CCN. Public Network: The source database is accessible through a public IP address. Direct Connect: The source database can connect to Tencent Cloud Virtual Private Cloud (VPC) through Direct Connect. VPN Access: The source database can connect to Tencent Cloud VPC through VPN Access. CCN: The source database can connect to Tencent Cloud VPC through CCN. VPC: Both the source and target databases are deployed on Tencent Cloud and have a VPC. To use the VPC access type, submit a ticket to apply. When the source database is a self-built database on CVM, set the access type to Self-Built on CVM. When the source database is a TencentDB instance, set the access type to Database. When the source database is a lighthouse database on Lighthouse, set the access type to Public Network. |
Public Network | When Access Type is set to Public Network, the following parameters are required to be configured. Host Address: IP address or domain name of the source database. Port: port used by the source database. |
Self-Build on CVM | When Access Type is set to Self-Built on CVM, the following parameters are required to be configured. CVM Instance: Specify the CVM instance ID. Port: port used by the source database. |
Direct Connect | When Access Type is set to Direct Connect, the following parameters are required to be configured. VPC-Based Direct Connect Gateway: Only the VPC-based Direct Connect gateway is supported for Direct Connect. Confirm the network type associated with the gateway. VPC: Select a VPC network and a subnet. Host Address: IP address or domain name of the source database. Port: port used by the source database. |
VPN Access | When Access Type is set to VPN Access, the following parameters are required to be configured. VPN gateway: Select a VPN gateway ID. VPC: Select the VPC network and subnet associated with the VPN gateway. Host Address: IP address or domain name of the source database. Port: port used by the source database. |
Database | When Access Type is set to Database, the following parameters are required to be configured. Whether Cross-Account Synchronization Is Required Intra-account: The Tencent Cloud root account for both the source and target database instances is the same. Cross-account: The Tencent Cloud root accounts for the source and target database instances are different. For guidance on cross-account synchronization operations, see Migration Between Cross-Account Cloud Database Instances. Instance ID: instance ID of the source database. Validation method Select the authentication method for accessing the database. The options are as follows: Password: Authenticate using the database account and password. CAM verification: Authenticate using Tencent Cloud CAM without entering the database password. |
CCN | When Access Type is set to CCN, the following parameters are required to be configured. When CCN access is used, both same-account CCN access and cross-account CCN access are supported. As this involves complex network configurations, see Migrating Self-built Databases to TencentDB via CCN. Host Network Environment: Select the network environment according to the actual situation. For example, if the source database is a TencentDB instance, select Tencent Cloud; if the source database is an IDC self-built database, select Self-built IDC; if the source database is a database of other cloud vendors, select the corresponding network. Host address: host IP address or domain name of the source database. Port: port used by the source database. CCN Instance Account Type: My account: The Tencent Cloud root account for both the CCN resources and the target database is the same. Other accounts: The Tencent Cloud root accounts for CCN resources and for the target database are different. VPC CCN: Specify the CCN instance name. VPC network and subnet associated with CCN: "CCN-associated VPC" refers to the VPC network that is connected to the synchronization link within CCN. Select VPC networks associated with CCN, excluding the VPC network to which the source database belongs. VPC region: The VPC access region is required to be consistent with the source database region selected during task purchase. If they are inconsistent, the selected source database region will be changed to the VPC access region automatically. |
VPC | When Access Type is set to VPC, the following parameters are required to be configured. VPC: Select a VPC network and a subnet. Host Address: IP address or domain name of the source database. Port: port used by the source database. |
Account/Password | Account/Password: the account and password of the source database. |
Connection Method | Secure Sockets Layer (SSL) connection refers to the use of SSL to establish a secure connection between DTS and the database, encrypting the transfer link. Selecting the SSL connection may increase the database connection response time. Generally, the private network link of Tencent Cloud is relatively secure, and the SSL connection is not required to be enabled. However, for scenarios where transfer methods such as public networks and DC are adopted, and data security requirements are high, the SSL connection is required to be enabled. Before the SSL connection is selected, SSL encryption is required to be enabled for the database first. |

Configuration Item | Parameter | Description |
Data Initialization Option | Initialization Type | Structure Initialization: When a synchronization task is executed, the table structures of the source instance are initialized to the target instance first. Full data initialization: When a synchronization task is executed, the data of the source instance is initialized to the target instance first. For scenarios where only full data initialization is selected, users need to create the table structures in the target database in advance. Both are selected by default and can be deselected if needed. |
| If Target Already Exists | Precheck and report error: If tables with the same name exist, an error will be reported, and the process will be stopped. Ignore and execute: Full and incremental data are directly appended to the tables in the target instance. |
Data Sync Option | Primary Key Conflict Resolution | Conflict error reporting: If a primary key conflict in the table is detected during synchronization, an error is reported, and the data synchronization task is paused. Conflict ignoring: If a primary key conflict in the table is detected during synchronization, the primary key record in the target database is retained. Conflict overwriting: When table primary key conflicts are detected during synchronization, the primary key record of the source database is used to overwrite that of the target database. |
Sync Object Option | Sync Object | Entire instance: Synchronize the entire instance. Specify object: Synchronize the specified object. |
| Advanced Migration Object | Select the objects to be synchronized, including basic databases, tables, views, stored procedures, and functions. Synchronization of advanced objects is a one-time action. It only synchronizes advanced objects existing in the source database before the task starts. Advanced objects added after the task starts will not be synchronized to the target database. For more details, see Synchronizing Advanced Objects. |
| Selected Object | Database and table mapping (database and table renaming) is supported. Hover the mouse pointer over a database or table name to display the Edit button. Click the button and fill in a new name in the pop-up window. When advanced objects are selected for synchronization, it is recommended not to rename databases and tables. Otherwise, advanced object synchronization may fail. |
| Whether to Synchronize Online DDL Temporary Tables | If the gh-ost or pt-osc tool is used to perform Online DDL operations on tables in the source database, DTS supports synchronizing the temporary tables generated by online DDL changes to the target database. If you select gh-ost, DTS will synchronize the temporary table names generated by the gh-ost tool (`_tablename_ghc`, `_tablename_gho`, and `_tablename_del`) to the target database. If you select pt-osc, DTS will synchronize the temporary table names generated by the pt-osc tool (`_tablename_new` and `_tablename_old`) to the target database. |

Parameter | Description |
Limit Transfer Speed | Generally, no configuration is required here. Configuration is only required when the database has configurations too low to handle the default number of concurrent threads and RPS of DTS. For details, see Speed Limit. |
DML Operation | Description |
INSERT | Synchronize the INSERT operation from the source to the target. |
UPDATE | Synchronize the UPDATE operation from the source to the target. |
DELETE | Synchronize the DELETE operation from the source to the target. |
Object Type | Supported DDL Operation |
DATABASE | CREATE,DROP,ALTER |
TABLE | CREATE,DROP,ALTER,TRUNCATE,RENAME |
VIEW | CREATE,DROP |
INDEX | CREATE,DROP |


Configuration Item | Parameter | Description |
check option | Verification Scope | Full check: All data in the source and target databases is compared when a check task is initiated. |
| Verification Benchmark | Both ends: Use data from the source and target as the check benchmark. |
Verification Parameters | Thread Count | The value range is 1–8. Select an appropriate value according to the actual situation. Increasing the number of threads can accelerate the consistency check speed, but it will also increase the load on the source and target databases. |
| Review count | Set the number of rechecks. If the first full data check result is inconsistent, the background will re-initiate a check of the inconsistent data identified during the full check. |
| Recheck time interval | Set the interval for rechecks. |
Verified Object option | Check Object | All sync objects: The check scope includes all objects selected for the synchronization task. Custom: Select specific objects from the selected synchronization objects for checking. |


Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan