Skip to content

Commit

Permalink
Update Aurora MySQL dumpling command (#6847)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengou1 authored Aug 30, 2021
1 parent df29686 commit 93903cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate-from-aurora-using-lightning.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ summary: 了解如何使用 TiDB Lightning 从 Amazon Aurora MySQL 迁移全量
1. 使用 Dumpling 导出表结构文件:
```
./dumpling --host 127.0.0.1 --port 4000 --user root --password password --no-data --output ./schema --filter "mydb.*"
./dumpling --host database-1.cedtft9htlae.us-west-2.rds.amazonaws.com --port 3306 --user root --password password --consistency none --no-data --output ./schema --filter "mydb.*"
```
> **注意:**
>
> - 请根据实际情况设置数据源地址的相关参数和输出文件的路径。
> - 请根据实际情况设置数据源地址的相关参数和输出文件的路径。例如 `database-1.cedtft9htlae.us-west-2.rds.amazonaws.com` 是 Aurora MySQL 的地址。
> - 如果需要导出所有库表,则不需要设置 `--filter` 相关参数。如果只需要导出部分库表,可参考 [table-filter](https://github.com/pingcap/tidb-tools/blob/master/pkg/table-filter/README.md) 进行设置。
2. 使用 TiDB Lightning 创建表结构
Expand Down

0 comments on commit 93903cb

Please sign in to comment.