Skip to content

Commit

Permalink
권한 해제 내용 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkdhoho committed Feb 1, 2024
1 parent 578af76 commit ee0ab6d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,21 @@ mysql> SHOW GRANTS FOR '사용자계정'@'호스트';
mysql> SHOW GRANTS FOR CURRENT_USER;
```

### 5-4. 권한 해제하기

권한을 빼앗고 싶을 경우가 있을 것이다.

그럴 땐 아래 명령어를 이용하면 된다.

```sql
mysql> REVOKE 권한1, 권한2, ... ON 데이터베이스.테이블 FROM '사용자'@'호스트';
```

![권한 해제 전](before_revoke.png)

![권한 해제 후](after_revoke.png)


## 6. 역할(Role)

v8.0부터 권한을 묶어 역할(Role)을 사용할 수 있게 됐다.
Expand Down

0 comments on commit ee0ab6d

Please sign in to comment.