Creating Table Structures in the Destination Database
Currently, only data can be migrated from the source RDS for MySQL database to the destination DDM instance. Source table structures and other objects cannot be migrated, so you need to create table structures and indexes in the destination database based on the table structures of the source schema. Objects that are not created in the destination database are not to be migrated. For more constraints, see Before You Start.
Procedure
- Log in to the management console.
- Click in the upper left corner of the management console and select CN-Hong Kong.
- Click Service List on the left and choose Databases > Distributed Database Middleware.
- On the Instances page, locate the required instance and click Log In in the Operation column.
- On the displayed page, enter the username and password created in Creating a DDM Account, and then click Test Connection.
- After the connection is successful, click Log In to log in to the DDM instance.
- Click the db_test schema created in Creating a Schema and Associating It with the RDS for MySQL Instance.
- Run the following statements in database db_test to create table table3_ with the same structure as the source table:
CREATE TABLE `db_test`.`table3_` ( `Column1` INT(11) UNSIGNED NOT NULL, `Column2` TIME NULL, `Column3` CHAR NULL, PRIMARY KEY (`Column1`) ) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
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