tencent cloud

Data Transfer Service

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Data Migration
Data Sync
Data Subscription (Kafka Edition)
Strengths
Supported Regions
Specification Description
Purchase Guide
Billing Overview
Configuration Change Description
Payment Overdue
Refund
Getting Started
Data Migration Guide
Data Sync Guide
Data Subscription Guide (Kafka Edition)
Preparations
Business Evaluation
Network Preparation
Adding DTS IP Addresses to the Allowlist of the Corresponding Databases
DTS Service Permission Preparation
Database and Permission Preparation
Configuring Binlog in Self-Built MySQL
Data Migration
Databases Supported by Data Migration
Cross-Account TencentDB Instance Migration
Migration to MySQL Series
Migrating to PostgreSQL
Migrating to MongoDB
Migrating to SQL Server
Migrating to Tencent Cloud Distributed Cache
Task Management
Data Sync
Databases Supported by Data Sync
Cross-Account TencentDB Instance Sync
Sync to MySQL series
Synchronize to PostgreSQL
Synchronization to MongoDB
Synchronize to Kafka
Task Management
Data Subscription (Kafka Edition)
Databases Supported by Data Subscription
MySQL series Data Subscription
Data Subscription for TDSQL PostgreSQL
MongoDB Data Subscription
Task Management
Consumption Management
Fix for Verification Failure
Check Item Overview
Cutover Description
Monitoring and Alarms
Supported Monitoring Indicators
Supported Events
Configuring Metric Alarms and Event Alarms via the Console
Configuring Indicator Monitoring and Event Alarm by APIs
Ops Management
Configuring Maintenance Time
Task Status Change Description
Practical Tutorial
Synchronizing Local Database to the Cloud
Creating Two-Way Sync Data Structure
Creating Many-to-One Sync Data Structure
Creating Multi-Site Active-Active IDC Architecture
Selecting Data Sync Conflict Resolution Policy
Using CLB as Proxy for Cross-Account Database Migration
Migrating Self-Built Databases to Tencent Cloud Databases via CCN
Best Practices for DTS Performance Tuning
FAQs
Data Migration
Data Sync
FAQs for Data Subscription Kafka Edition
Regular Expressions for Subscription
Error Handling
Common Errors
Failed Connectivity Test
Failed or Alarmed Check Item
Inability to Select Subnet During CCN Access
Slow or Stuck Migration
Data Sync Delay
High Data Subscription Delay
Data Consumption Exception
API Documentation
History
Introduction
API Category
Making API Requests
(NewDTS) Data Migration APIs
Data Sync APIs
Data Consistency Check APIs
(NewDTS) Data Subscription APIs
Data Types
Error Codes
DTS API 2018-03-30
Service Agreement
Service Level Agreements
DocumentaçãoData Transfer ServiceData SyncSync to MySQL seriesSync to TDSQL for MySQLSync from MySQL/MariaDB/Percona/TDSQL-C MySQL/TDSQL Boundless to TDSQL MySQL

Sync from MySQL/MariaDB/Percona/TDSQL-C MySQL/TDSQL Boundless to TDSQL MySQL

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-03-30 17:14:40
The requirements and instructions for syncing MySQL, MariaDB, Percona, TDSQL-C MySQL, TDSQL Boundless to TencentDB TDSQL MySQL are essentially the same as those for TDSQL MySQL syncing to TDSQL MySQL. See relevant content for operations.
Currently, only differences are displayed.
1. In the synchronization links from MySQL/MariaDB/Percona to TDSQL MySQL, the mapping of partitioned tables is as follows:
1.1 If the user has no table type mapping, the primary key is selected as the shard key by default, and the sharding method is hash; for a composite primary key, the first primary key is selected as the shard key.
1.1.1 Partitioned tables created at the source must comply with the table creation specifications for partitioned tables on the target side TDSQL MySQL (for example, the type of the shardkey field must be int/bigint/smallint/char/varchar; when the shardkey field type is char/varchar, the field length must be defined; shardkey cannot contain Chinese characters, and so on), and the partitioning rules in both the full and incremental stages must meet the requirements of the target side; otherwise, it will result in synchronization error reporting.
1.1.2 If the primary key type of the source database, after it is mapped and converted by DTS, does not meet the requirements for the shard key type of the target database (the shard key must be int, bigint, smallint, char, or varchar), it will be created as a non-sharded table.
1.2 For the mapping of partitioned tables, only first-level partitioning (hash, range, list) is currently supported, using the primary key as the partitioning key. If no partitioning type is specified, hash is used by default for first-level partitioning mapping.
1.2.1 When mapping to first-level Range/List partitions, the supported partition key data types in the target database are TINYINT, SMALLINT, MEDIUMINT, INT (INTEGER), BIGINT, CHAR, and VARCHAR. When setting Range/List partitions, ensure the partitioning policy covers all data from full + incremental sources; otherwise, data cannot be written according to partitioning rules, resulting in task errors.
1.2.2 When the partitioning key is mapped to first-level Hash partitions, the partitioning key must be part of the primary key and unique index. The supported partitioning key data types in the target database are SMALLINT, INT (INTEGER), BIGINT, CHAR, and VARCHAR.
1.3 If the source-side MySQL/MariaDB/Percona uses sharded tables, they can only be created as non-sharded tables after being synchronized to the target-side TDSQL MySQL.
2. In the scenario of synchronizing MySQL/MariaDB/Percona to TDSQL MySQL, due to the limitations on auto-increment fields imposed by sharded tables and broadcast tables on the target side TDSQL MySQL, the corresponding restrictions on the source side are as follows:
2.1 The source side does not support using the ALTER TABLE MODIFY AUTO_INCREMENT syntax to modify a regular field to AUTO_INCREMENT. If there are similar operations modifying the auto-increment field AUTO_INCREMENT, the synchronization task will cause error reporting.
2.2 If a table at the source has an auto-increment column, that column must be part of the primary key; otherwise, the synchronization task will cause error reporting.


Ajuda e Suporte

Esta página foi útil?

comentários