Use DMS migration AWS RDS MySQL to Azure Database for MySQL

    MySQL look below at how migration, DMS can migrate far more than there are SQL Server, MySQL, Mongo, Oracle can migrate, they can even do a heterogeneous migration, look below at how to migrate from MySQL RDS to the Azure Azure's PaaS MySQL    


    MySQL migration in general can be divided into three major steps

    1. AWS RDS configuration parameters in preparation for migration environment

    2. migrate the database schema

    3. Data Migration



    First, AWS RDS we need to configure some parameters, set some parameters of Binlog

    

    Create a new set of parameters using the following configuration:

        binlog_format = row

        binlog_checksum = NONE

    1.png


Get rid of the associated configuration parameters in the group

3.png



Then we need to set the parameters associated with RDS in just created

4.png


    These steps are relatively simple, need to restart after the next MySQL

5.png



    Otherwise it would have been seen is pending reboot, in addition, also need to set the security group, these steps will not go

6.png


    Then we can begin to migrate the database schema, we can use mysqldump to lead out the schema

    Connected to mysql, mysqldump.exe -h mxyrds.c4u9uhbque93.rds.cn-north-1.amazonaws.com.cn -p --database test --no-date> d using the following command: \ test.sql

    7.png


    After you can see the script to create the schema will be exported to a file, and then after the mysql program to import the data into the database

    mysql.exe -h mxymysql.mysql.database.chinacloudapi.cn -u mengxiyuan@mxymysql -p test < d:\test.sql

9.png

    

    

    After the table as these data will be created in mysql

    

    Next we start migrating data in the DMS, the first project to create a migration of MySQL

10.png


    Here there is a direct migration to AWS RDS MySQL Azure database for MySQL

11.png


Here enter the source and destination information, pay attention to advance to the firewall rule set

13.png



Here you can select the source libraries and corresponding target libraries to migrate

16.png


Then you can start preparing migrated

17.png


This migration is also possible increment here is not to demonstrate


18.png

18.png

In fact, the process used to migrate to SQL RDS and Azure SQL is very similar, but not the same method to migrate schema


Guess you like

Origin blog.51cto.com/mxyit/2466657