Skip to content

Commit

Permalink
fix: X protocol 문제 때문에 33060 -> 33061 포트로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
gusah009 committed Aug 22, 2023
1 parent 29f03dc commit 6499268
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sns_service/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ services:
image: "mysql:8.0"
container_name: sns-mysql
ports:
- "33060:3306"
- "33061:3306"
environment:
MYSQL_DATABASE: sns-db
MYSQL_ROOT_PASSWORD: 1234
command: [ '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci' ]
command: [ '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci' ]
4 changes: 2 additions & 2 deletions sns_service/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ spring:
datasource:
username: root
password: 1234
url: jdbc:mysql://localhost:33060/sns-db?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC&useLegacyDatetimeCode=false
url: jdbc:mysql://localhost:33061/sns-db?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC&useLegacyDatetimeCode=false
driver-class-name: com.mysql.cj.jdbc.Driver

jpa:
Expand All @@ -12,4 +12,4 @@ spring:
hibernate:
show_sql: true
format_sql: true
dialect: org.hibernate.dialect.MySQL8Dialect
dialect: org.hibernate.dialect.MySQL8Dialect

0 comments on commit 6499268

Please sign in to comment.