Common Practices
After a schema is created and connected to a DDM instance, you can use common practices provided by DDM as needed.
Scenario |
Practice |
Description |
---|---|---|
SQL Syntax |
This practice describes SQL standards used in DDM. |
|
This practice describes common DDL operations in DDM, including creating a database, creating a table, and altering a table. |
||
This practice describes common DML operations in DDM, such as INSERT, REPLACE, DELETE, UPDATE and SELECT. |
||
Shard Configuration |
This practice describes how sharding works and how to configure shards. |
|
Database and Table Sharding |
Sharding Database and Table Data of an RDS for MySQL Instance |
This practice describes how to shard database and table data of an existing RDS for MySQL instance using DDM. |
Data Migration |
You are using an on-premises RDS for MySQL instance and want to use DDM to store data in a distributed manner. This practice describes how to migrate data from an on-premise MySQL instance to DDM. |
|
Migrating Data from a Third-Party Cloud MySQL Instance to DDM |
You are using a third-party MySQL instance and want to use Huawei Cloud DDM for distributed data storage. This practice describes how to migrate data from a third-party cloud MySQL instance to DDM. |
|
You have built a MySQL instance on an ECS and want to migrate your data from the instance to DDM for distributed data storage. This practice describes how to migrate data from a self-built MySQL instance to DDM. |
||
This practice describes how to migrate data from Huawei Cloud RDS for MySQL to DDM. |
||
This practice describes how to export DDM instance data to a SQL text file. |
||
This practice describes how to migrate data from a heterogeneous database such as Oracle, PostgreSQL, and SQL Server to DDM. |
||
This practice describes how to migrate an entire RDS instance to an unsharded schema of a DDM instance. |
||
This practice describes how to migrate an entire MyCat database to DDM. |
||
Backups and Restorations |
DDM instances cannot be backed up manually. The system backs up them from 02:00 to 03:00 GMT+08:00 every day. |
|
Restoring data to a new instance restores your DDM instance and its data nodes (RDS for MySQL instances). Before the restoration, you need to prepare a new DDM instance and as many new RDS for MySQL instances as there are data nodes. |
||
Restoring Metadata mainly restores the metadata of your DDM instance to a new DDM instance. It starts after a point-in-time recovery for the associated data nodes is complete. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot