How to rename the database name in Navicat for MySQL

在数据库 gsy2aa-test 上刷新,确定结构与数据皆已经与数据库 g-s-yii2-app-advanced-test 中一致

1. In Navicat for MySQL, when editing the database, the database name cannot be edited, as shown in Figure 1

在 Navicat for MySQL 中,编辑数据库时,数据库名不能够编辑
Figure 1

2. Rename the database in phpmyadmin, it can be seen that phpmyadmin can support the operation of direct rename, as shown in Figure 2

在 phpMyAdmin 中重命名数据库,可见,phpMyAdmin 可以支持直接重命名的操作
Figure 2

3. Prepare to rename g-s-yii2-app-advanced-test in Navicat for mysql, and create a new database: gsy2aa-test, as shown in Figure 3

准备在 Navicat for MySQL 中,重命名 g-s-yii2-app-advanced-test 为 gsy2aa-test,新建数据库:gsy2aa-test
Figure 3

4. On the database g-s-yii2-app-advanced-test, dump SQL files – structure and data, export files: g-s-yii2-app-advanced-test.sql, as shown in Figure 4

在数据库 g-s-yii2-app-advanced-test 上,转储 SQL 文件 - 结构与数据,导出文件:g-s-yii2-app-advanced-test.sql
Figure 4

5. On the database GSY2AA-TEST, run the SQL file, select the SQL file just exported, as shown in Figure 5

在数据库 gsy2aa-test 上,运行 SQL 文件,选择刚才导出的 SQL 文件
Figure 5

6. Refresh on the database GSY2AA-TEST to determine that the structure and data are consistent with the database G-S-YII2-App-Advanced-Test, as shown in Figure 6

在数据库 gsy2aa-test 上刷新,确定结构与数据皆已经与数据库 g-s-yii2-app-advanced-test 中一致
Figure 6

7. Delete the database g-s-yii2-app-advanced-test, as shown in Figure 7

删除数据库 g-s-yii2-app-advanced-test
Figure 7

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.