Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- 리눅스
- node.js
- PyQt5
- mssql
- 맛집
- GIT
- PyQt
- PER
- ASP
- 함수
- Linux
- 라즈베리파이
- pandas
- IOS
- swift
- sqlite
- tensorflow
- Unity
- urllib
- MySQL
- flutter
- ubuntu
- MS-SQL
- Excel
- python
- 날짜
- port
- 다이어트
- 유니티
- javascript
Archives
아미(아름다운미소)
[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