MariaDB 사용자 추가/삭제, 권한부여/삭제 > IT 기술백서

IT 기술백서

직접 알아내거나 검색하기 귀찮아서 모아 둔 것

DB | MariaDB 사용자 추가/삭제, 권한부여/삭제

본문

사용자 추가

[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개

등록된 댓글이 없습니다.

Menu