-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
microrain
authored and
microrain
committed
Jan 10, 2023
1 parent
98a7874
commit 4522fa6
Showing
7 changed files
with
59 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# TDengine 数据库迁移工具 | ||
|
||
> 简单的 TDengine 数据库迁移工具。 | ||
> 该工具在数据迁移时,会删除目标数据库的超级表、子表的表结构和数据,请注意备份!! | ||
|
||
使用方式:直接动行即可。 | ||
|
||
## 一、TDengine 配置 | ||
1. tdengineSrc:源数据库连接配置 | ||
2. tdengineDest:目标数据库连接配置 | ||
|
||
## 二、程序运行时迁移步骤说明 | ||
1. 创建超级表 | ||
- 获取源数据库的超级表结构 | ||
- 删除目标数据库超级表结构 | ||
- 创建新超级表 | ||
2. 创建子表 | ||
- 获取源数据库的子表结构 | ||
- 删除目标数据库子表结构 | ||
- 创建新子表 | ||
3. 数据迁移 |