Skip to content

Commit

Permalink
write_table should be read_table (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanderlam authored May 28, 2021
1 parent 8108688 commit 832572f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session1/chapter10/privilege-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ developer> INSERT INTO write_table VALUES (1),(2),(3);
Query OK, 3 rows affected (0.00 sec)
Records: 3  Duplicates: 0  Warnings: 0
```
假如用 developer 试图对 write_table 进行写操作,TiDB 会提示限检查未通过。
假如用 developer 试图对 read_table 进行写操作,TiDB 会提示限检查未通过。
```
developer> INSERT INTO read_table VALUES (1),(2),(3);
ERROR 1142 (42000): INSERT command denied to user 'developer'@'192.168.0.%' for table 'read_table'
Expand Down

0 comments on commit 832572f

Please sign in to comment.