티스토리 뷰
1. Database 생성
MariaDB [(none)]> create database DB명;
2. Database 접속
MariaDB [(none)]> use DB명;
3. 사용자 추가
MariaDB [(none)]> create user 사용자ID@접속호스트(localhost) identified by '패스워드';
4. 권한 Flush
MariaDB [(none)]> flush privileges;
- 권한을 사용자가 부여할 경우 flush를 꼭 해줘야 정상 작동 함
4. 권한 부여 (모든 권한)
MariaDB [(none)]> grant all privileges on DB명.* to 사용자ID@접속호스트;
5. 권한 삭제
MariaDB [(none)]> revoke all privileges on DB명.* from 사용자ID@접속호스트;
반응형
'Studying > Database' 카테고리의 다른 글
[MSSQL] Lock 처리 (0) | 2023.04.19 |
---|---|
[MariaDB] CentOS 7에서 MariaDB 설치 및 기본 설정 (0) | 2018.09.29 |
[ORACLE] 사용자 계정 (0) | 2014.04.09 |
[ORACLE] TABLESPACE (0) | 2014.04.09 |
[ORACLE] CHARACTER SET (0) | 2014.04.09 |
댓글