Skip to content

Commit ac15f2a

Browse files
committed
tidb-cloud: add CREATE VIEW to DM target user GRANT example
The privilege table on line 464 of migrate-from-mysql-using-data-migration.md already lists CREATE VIEW as required, but the copy-pasteable GRANT example on line 469 omits it. This causes TiDB Lightning to abort at errormanager.Init with Error 1142 for any customer who follows the example literally. The fix brings the GRANT example in line with the privilege table. Customer ticket: DM-12760
1 parent 2475860 commit ac15f2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tidb-cloud/migrate-from-mysql-using-data-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ For production workloads, it is recommended to have a dedicated user for replica
466466
For example, you can execute the following `GRANT` statement in your target TiDB Cloud cluster to grant corresponding privileges:
467467

468468
```sql
469-
GRANT CREATE, SELECT, INSERT, UPDATE, DELETE, ALTER, DROP, INDEX ON *.* TO 'dm_target_user'@'%';
469+
GRANT CREATE, SELECT, INSERT, UPDATE, DELETE, ALTER, DROP, INDEX, CREATE VIEW ON *.* TO 'dm_target_user'@'%';
470470
```
471471

472472
## Step 1: Go to the Data Migration page

0 commit comments

Comments
 (0)