Modify the MySQL database name in Navicat

Recently, I plan to use the Ruoyi framework to do projects. The database name of the framework is named ruoyi, so I want to change the database name. Here is a record of the process of changing the database name.

1. Create a new target database

The name of the newly created database here is: property, and the command is as follows:

CREATE DATABASE property

insert image description here

2. Copy the data tables in the original database to the target database

1. Select data transmission, my Navicat version is 15, and the data parameters are in the tools in the menu bar.

insert image description here
After selecting, click Next, and use Navicat's data transmission to copy the original database to other database connections.

2. Select copy content

Because I want to copy the database, select all options here and select the first item.

insert image description here
Click Next.

insert image description here
Click Start and see the following message, which means the copying is successful.

insert image description here

You can see that the data in both databases are the same.
insert image description here
If the amount of data is large, it will be time-consuming.

Guess you like

Origin blog.csdn.net/studio_1/article/details/127012580