Updated on 2023-10-09 GMT+08:00

Importing Schema Information

When you deploy DR or migrate data across regions, you can import schema information into destination DDM instances. The imported information includes schema information and shard information, excluding service data and index data.

Prerequisites

The DDM instance has no schemas.

Procedure

  1. Log in to the DDM console.
  2. In the instance list, locate the instance that you want to import schema information into and click its name.
  3. On the displayed page, in the navigation pane, choose Schemas.

    Figure 1 Schema list

  4. On the displayed page, click Import Schema Information.

    More than one JSON file can be imported into a DDM instance in the premise that the DDM instance does not have schemas with the same names as those in the JSON file.

  5. On the displayed page, click Select File to select the JSON file exported in Exporting Schema Information, choose the required data nodes, enter a database account with the required permissions, and click Finish.

    • The number of selected data nodes is the same as the number of data nodes imported into the DDM instance.
    • Required permissions: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER WITH GRANT OPTION