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.
Modify the database name in Navicat
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
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.
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.
Click Next.
Click Start and see the following message, which means the copying is successful.
You can see that the data in both databases are the same.
If the amount of data is large, it will be time-consuming.