-
Notifications
You must be signed in to change notification settings - Fork 1.2k
tools: add data migration route #3292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sre-bot
merged 12 commits into
pingcap:docs-special-week
from
WangXiangUSTC:xiang/data-migration-route
May 26, 2020
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
41f2333
add data migration route
WangXiangUSTC 53067ac
update TOC
WangXiangUSTC 3a26467
update toc
WangXiangUSTC 4aa0f09
add scenario
WangXiangUSTC 505b4a9
Apply suggestions from code review
WangXiangUSTC c951cc6
Merge branch 'docs-special-week' into xiang/data-migration-route
WangXiangUSTC 5b44b5b
Merge branch 'docs-special-week' into xiang/data-migration-route
WangXiangUSTC efba8f7
Update data-migration-route.md
yikeke 0d70834
Apply suggestions from code review
WangXiangUSTC e52ce51
Delete migrate-from-mysql-csv-files.md
8f67dea
Merge branch 'docs-special-week' into xiang/data-migration-route
WangXiangUSTC b6adba7
Merge branch 'docs-special-week' into xiang/data-migration-route
sre-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,46 @@ | ||
| --- | ||
| title: 支持的数据迁移路径 | ||
| summary: 本文档介绍支持哪些路径将数据迁移到 TiDB。 | ||
| category: reference | ||
| --- | ||
|
|
||
| # 支持的数据迁移路径 | ||
|
|
||
| 本文档介绍支持从哪些路径将数据迁移到 TiDB,包括从 MySQL 迁移到 TiDB 和从 CSV 文件迁移到 TiDB。 | ||
|
|
||
| ## 从 MySQL 迁移到 TiDB | ||
|
kissmydb marked this conversation as resolved.
|
||
|
|
||
| 目前推荐使用以下两种方式将 MySQL 数据迁移到 TiDB。 | ||
|
WangXiangUSTC marked this conversation as resolved.
|
||
|
|
||
| - [使用 Mydumper 和 TiDB Lightning 迁移全量数据](#使用-mydumper-和-tidb-lightning-迁移全量数据) | ||
| - [使用 DM 迁移数据](#使用-dm-迁移数据) | ||
|
|
||
| ### 使用 Mydumper 和 TiDB Lightning 迁移全量数据 | ||
|
|
||
| #### 适合场景 | ||
|
|
||
| 适合 MySQL 全量数据的大小大于 1TB 的场景。该方案只能迁移全量数据,如果需要继续同步增量数据,需要再使用 TiDB Data Migration (DM) 创建增量同步任务。 | ||
|
|
||
| #### 迁移方法 | ||
|
|
||
| 使用 Mydumper 导出 MySQL 的全量数据,再使用 TiDB Lightning 将全量数据导入到 TiDB,详细信息可参考[从 Mydumper 文件迁移](/migrate-from-mysql-mydumper-files.md) | ||
|
|
||
| ### 使用 DM 迁移数据 | ||
|
|
||
| #### 适合场景 | ||
|
|
||
| 适合迁移 MySQL 全量数据并同步增量数据的场景,且全量数据的大小小于 1TB。如果全量数据的大小大于 1TB,建议使用 Mydumper 和 TiDB Lightning 导入全量数据后,再使用 DM 同步增量数据。 | ||
|
|
||
| #### 迁移方法 | ||
|
|
||
| DM 支持将 MySQL 全量数据迁移到 TiDB,并同步 MySQL 的增量数据到 TiDB,详细信息可参考[使用 DM 工具从 Amazon Aurora MySQL 迁移](/migrate-from-aurora-mysql-database.md) | ||
|
|
||
| ## 从 CSV 文件迁移到 TiDB | ||
|
|
||
| ### 适合场景 | ||
|
|
||
| 适合将不兼容 MySQL 协议的异构数据库的数据迁移到 TiDB。 | ||
|
|
||
| ### 迁移方法 | ||
|
|
||
| 将全量数据导出到 CSV 格式的文件中,再使用 TiDB Lightning 将 CSV 格式的数据迁移到 TiDB,详细信息可参考[从 CSV 文件迁移至 TiDB](/tidb-lightning/migrate-from-csv-using-tidb-lightning.md) | ||
Empty file.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.