Comments (2)
docker pull mysql
docker run --name dayco-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password -v /Users/yanghun007/dayco/mysql:/var/lib/mysql -e MYSQL_USER=daycouser -e MYSQL_PASSWORD=daycouser mysql
docker exec -it dayco-mysql /bin/bash
mysql -u root -p
use mysql
select host, user, authentication_string from user;
create user daycouser;
create user daycouser@localhost identified by 'daycouser';
create user 'daycouser'@'%' identified by 'daycouser'; // '%' 의 의미는 외부에서의 접근을 허용
drop user 'daycouser'@'localhost'; // 계정 삭제
show databases;
create schema daycodb default character set utf8;
drop database daycodb;
grant all privileges on daycodb.* to 'daycouser'@localhost identified by 'daycouser';
grant select, insert, update on daycodb.* to 'daycouser'@localhost identified by 'daycouser';
grant select, insert, update on daycodb.* to 'daycouser'@'%' identified by 'daycouser';
//user 에게 uaadb 데이터베이스 모든 테이블에 select, insert, update 권한 부여
grant select, insert, update on daycodb.* to 'daycouser'@localhost; // 패스워드는 변경없이 권한만 부여하는 경우
mysql> grant all privileges on *.* to 'daycouser'@'%' with grant option;
flush privileges; // 변경된 내용을 메모리에 반영(권한 적용)
revoke all on daycodb.* from daycouser; // 모든 권한을 삭제
docker inspect dayco-mysql
from dayco.
build.gradle
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.15'
application.yml
spring:
jpa:
show-sql: true
properties:
hibernate:
format_sql: true
database: mysql
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
generate-ddl: true
application:
name: dayco-uaa
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/uaadb?useSSL=false
username: uaauser
password: uaauser
from dayco.
Related Issues (20)
- Github, Google, Naver oAuth 제공
- Logout 기능 구현
- Profile 이미지 추가 HOT 2
- HTTP Status Code 에 따라 UI 변경 HOT 1
- UAA Service HTTP Status Code 에 따라 Custom 메시지 정의 HOT 1
- UAA Gateway, Eureka 연결 HOT 1
- Spring Session을 이용한 세션 클러스터링
- Posts 기능 개발 HOT 5
- logback dev, prod 환경 분리
- fontawesome icon 추가
- JWT 토큰 만기 되었을 경우, HTTP Status 500 에러 발생
- JSON 형태의 Response 값에서 Exception 및 Success 할 경우, 공통 Alert 창 띄워지게 수정 HOT 1
- Netflix Zuul 에서 Spring Cloud Gateway 변경 HOT 1
- Netflix Ribbon 에서 Spring Cloud Loadbalancer 로 변경
- JS moment.js 연동 HOT 1
- Kubernetes 추가 HOT 1
- MinIO 오브젝트 스토리지 연동 HOT 1
- 카카오 로그인 및 싱크 기능 추가 HOT 1
- Gradle Multi Module 로 변경 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dayco.