Data Migration
Prerequisites
RuoYi data has been imported to the source MySQL database. You can log in to the MySQL database and run the following command to import the file:
mysql> create database ry; mysql> use ry; mysql> source /path/ry_20240601.sql mysql> source /path/quartz.sql
/path: path for storing the .sql file. Replace it with the actual one. The .sql file is stored in the RuoYi-master/sql path generated after decompressing RuoYi-master.zip.
Procedure
- View the migration report and click View Details.

- Enable the DM database firewall port based on the verification method.

- Log in to the database migration tool. For details about the user name and password, see the Online Help in Tips.

- Enter the user name and password to log in to the DM management system.

- Create a migration project, set the project name to devkit, and click OK.


- Select MySQL==>DM and click Next.

- Enter the source database information and click Next.

- Enter the DM database information and click Next.

- Select Keep Case and click Next.

- Select the source database ry and click Next.

- Select all tables and click Next.

- View the migration details and click Next.

When the progress reaches 100%, the migration is complete.

Parent topic: Migration