* 此功能适用于不同连接,不同数据库,具有相同的表结构,相同的分组
1、打开 “菜单栏 - 工具 - 选项“ 窗口,找到MySQL的配置文件目录 “D:\用户目录\我的文档\Navicat\Premium\profiles”(不同电脑可能不同)
2、打开vgroup.json 文件,各字段名释义如下
{"version" : "1.1",
"vgroups" : [ // 连接分组
{
"vgroup_name" : "\u8BD5\u9A8C\u6570\u636E\u5E93", // 组名
"vgroup_type" : "CONNECTION", // 组类型
"items" : [ // 该组下的多个连接
{
"name" : "localhost",
"type" : "CONNECTION",
"server_type" : "MYSQL"
}
]
}
],
"connections" : [ // 数据库分组
{
"conn_name" : "localhost", // 连接名
"conn_type" : "MYSQL",
"catalogs" : [
{
"catalog_name" : "default",
"schemas" : [
{
"schema_name" : "test_db", // 数据库名
"vgroups" : [
{
"vgroup_name" : "group1", // 组名
"vgroup_type" : "TABLE", // 表的分组类型
"items" : [
{
"name" : "table_test", // 表名
"type" : "TABLE" // 表类型
}
]
},
{
"vgroup_name" : "group1", //
"vgroup_type" : "VIEW", // 视图的分组
"items" : [
{
"name" : "view_test",
"type" : "VIEW"
}
]
}
]
}
],
"vgroups" : [ ]
}
],
"vgroups" : [ ]
}
]
}
3、相同的配置,复制粘贴