distributed-database-middle.../umn/source/schema_management/importing_schema_information.rst

1.6 KiB

original_name

ddm_06_0007.html

Importing Schema Information

Scenarios

When you deploy DR or migrate data across regions, you can import schema information in 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; in the instance list, locate the DDM instance that you want to import schema information into and click its name.

  2. On the displayed page, in the navigation pane, choose Schemas.

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

    Note

    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.

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

    Note

    • 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