Skip to content

Commit

Permalink
sql: fix privilege errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 committed May 28, 2018
1 parent def503c commit 3c09db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/privilege.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ To be more precise, you can check the privilege information in the `Grant` table
1. Check if `test@%` has global `Insert` privilege:

```sql
select Insert from mysql.user where user='test' and host='%';
select Insert_priv from mysql.user where user='test' and host='%';
```

2. If not, check if `test@%` has database-level `Insert` privilege at `db1`:

```sql
select Insert from mysql.db where user='test' and host='%';
select Insert_priv from mysql.db where user='test' and host='%';
```

3. If the result is still empty, check whether `test@%` has table-level `Insert` privilege at `db1.t`:
Expand Down

0 comments on commit 3c09db7

Please sign in to comment.