사용자 생성과 권한 부여
grant 권한 종류 on DB이름. 테이블 이름 to 사용자 이름@호스트 identified by '패스워드';
grant all on testDB.*to user1@localhost identified by '1234';

사용자 조회
show grants for 사용자이름@호스트;
show grants for user1@localhost;

사용자 패스워드 변경
set password for 사용자이름@로컬호스트=password('패스워드');
set password for user1@localhost=password('4321');
사용자 조회
select host, user, password from mysql.user;

'DataBase > MariaDB' 카테고리의 다른 글
| [MariaDB] 테이블 생성하기 (0) | 2024.03.18 |
|---|---|
| [MariaDB] DB 생성 조회 삭제, 기본 설정 character확인 (0) | 2024.03.18 |
| [MariaDB] 처음 실행하기 (0) | 2024.03.18 |
| [MariaDB] MariaDB란 ? 설치방법 (0) | 2024.03.18 |