Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
[MySQL] 유저 권한 설정 본문
MySQL 의 grant 명령어로 사용자 권한 설정
사용자 권한 설정
모든 db 및 테이블에 접근권한 설정
모든 db 및 테이블에 권한을 주고 로컬 및 리모트에서도 접속가능하도록 설정
설정한 권한 적용 (반드시 해야 적용이 된다.)
권한 삭제
권한 조회
사용자 권한 설정
grant all privileges on dbname.table to userid@host identified by 'password';
grant all privileges on *.* to userid@host identified by 'password';
grant all privileges on *.* to userid@'%' identified by 'password';
flush privileges;
revoke all on dbname.table from userid@host
show grants for userid@host
'데이타베이스 > MYSQL' 카테고리의 다른 글
MySQL 외부 접속 허용 설정 (0) | 2019.01.23 |
---|---|
MySQL이 어떤 포트에서 실행되고 있는지 확인방법 (0) | 2019.01.19 |
MySQL - DB 백업, 복구 명령어 (0) | 2018.11.22 |
How to bulk insert into MySQL using C# (0) | 2018.07.02 |
MySQL LOCKED 확인 및 죽이기 (0) | 2018.06.24 |
Comments