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
- Devtools
- color site
- livereload
- RGB WEB
- 테스트 이미지
- test image
- 웹 테스트 이미지
- RGB 생성
- springboot
- 팬톤 색상 웹
- Spring
- 새로고침
Archives
- Today
- Total
기억은 휘발성 메모리
Mysql user 생성 권한 부여 본문
Mysql user 생성 권한 부여
접속
경로 C:"Program Files"\MySQL"MySQL Server 8.0"\bin
- mysql -u root -p // root 계정으로 password 입력
- mysql -u [username] -p // [username] 계정으로 password 입력
user 생성
create user '[userName]'@'[hostName]' identified by '[passwoard]';
제대로 생성됬는지 확인하기
use mysql;
select user, host from user;
DataBase 생성
create database '[dbName]';
//제대로 생성됬는지 확인하기
show databases;
User 권한 부여
grant all privileges on '[dbName]'.* to '[userName]'@'[hostName]';
특정 [DBname]에만 권한 부여
grant all privileges on *.* to '[userName]'@'[hostName]';
모든 DB들에 대한 권한 부여
//제대로 적용됬는지 확인하기
show grants for '[userName]'@'[hostName]';
' Things to remember > Mysql' 카테고리의 다른 글
Linux Mysql 한글 깨짐 현상 (0) | 2019.03.13 |
---|
Comments