Skip to content

Commit

Permalink
Migrate from Aurora: update Aurora MySQL dumpling command
Browse files Browse the repository at this point in the history
  • Loading branch information
en-jin19 committed Aug 30, 2021
1 parent 5d51e44 commit f02b19e
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 @@ Because the snapshot data exported from Aurora to S3 does not contain the SQL st
1. Use Dumpling to export table schema files:

```
./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.*"
```

> **Note:**
>
> - Set the parameters of the data source address and the path of output files according to your actual situation.
> - Set the parameters of the data source address and the path of output files according to your actual situation. For example, `database-1.cedtft9htlae.us-west-2.rds.amazonaws.com` is the address of Aurora MySQL.
> - If you need to export all database tables, you do not need to set the `--filter` parameter. If you only need to export some of the database tables, configure `--filter` according to [table-filter](https://github.com/pingcap/tidb-tools/blob/master/pkg/table-filter/README.md).
2. Use TiDB Lightning to create table schemas:
Expand Down

0 comments on commit f02b19e

Please sign in to comment.