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 |
Tags
- GitHub
- Junit5
- 팀과제
- springboot
- container
- 파일삭제
- Swagger
- CS50
- Spring
- swaggerUrl
- springmvc
- .out
- .idea
- springframeworkruntime
- Git
- gitbash
- 부스트코스
- 컴퓨터과학
- assume
- springsecurity
- c언어
- MVC
- assume That
- assume True
- DispatcherServlet
- assuming That
- securityconfig
- MVC모듈
- 원격저장소
- 스프링프레임워크
Archives
- Today
- Total
도담이 먹여 살려야하는 집사
SQL DATABASE생성하기 본문
- mysql 관리자 계정으로 로그인 하기
2. 데이터베이스 생성하기
-- 데이터베이스 생성하는 명령어
create database DB이름;
3. 데이터베이스 사용자 생성과 권한 주기
grant all privileges on db이름.* to 계정이름@'%' identified by '암호’;
grant all privileges on db이름.* to 계정이름@'localhost' identified by '암호’;
flush privileges;
@'%' >> 어떤 클라이언트에서든 접근 가능
@'localhost' >> 해당 컴퓨터에서만 접근 가능
flush privileges DBMS에게 적용하라는 의미
이 명령을 반드시 실행해줘야함
* DBMS에 존재하는 데이터 베이스 확인하기
show databases;
Comments