Skip to content

Commit 43aa528

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 user who follows the example literally. The fix brings the GRANT example in line with the privilege table.
1 parent 2475860 commit 43aa528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)