DB | MariaDB 사용자 추가/삭제, 권한부여/삭제
페이지 정보
- 작성자:
- 핵탐
- 작성일
- 07.06 11:03
- 조회
- 1,844
- 댓글
- 0
본문
사용자 추가
[code]
create user 'user1'@'localhost' identified by 'password';
[/code]
사용자 삭제
[code]
drop user 'user1'@'localhost';
[/code]
권한부여
[code]
grant all privileges on 디비명.* to 'user1'@'localhost';
[/code]
권한제거
[code]
revoke all on 디비명.* from 'user1'@'localhost';
[/code]
권한보기
[code]
show grants for 'user1'@'localhost';
[/code]
댓글 0개
등록된 댓글이 없습니다.