Skip to content

Commit

Permalink
tidb-cloud: remove TRUNCATE privilege in migration (#16510)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 authored Feb 15, 2024
1 parent 895005d commit fa8219e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tidb-cloud/migrate-from-mysql-using-data-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,11 @@ The username you use for the downstream TiDB Cloud cluster must have the followi
| `ALTER` | Tables |
| `DROP` | Databases, Tables |
| `INDEX` | Tables |
| `TRUNCATE` | Tables |

For example, you can execute the following `GRANT` statement to grant corresponding privileges:

```sql
GRANT CREATE,SELECT,INSERT,UPDATE,DELETE,ALTER,TRUNCATE,DROP,INDEX ON *.* TO 'your_user'@'your_IP_address_of_host'
GRANT CREATE,SELECT,INSERT,UPDATE,DELETE,ALTER,DROP,INDEX ON *.* TO 'your_user'@'your_IP_address_of_host'
```

To quickly test a migration job, you can use the `root` account of the TiDB Cloud cluster.
Expand Down

0 comments on commit fa8219e

Please sign in to comment.