1. 程式人生 > >批量修改Navicat 不同資料庫的分組

批量修改Navicat 不同資料庫的分組

* 此功能適用於不同連線,不同資料庫,具有相同的表結構,相同的分組
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、相同的配置,複製貼上