[Error] Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.exception.SQLGrammarException: Unable to open JDBC Connection for DDL execution

밀크야살빼자·2023년 4월 4일
0

[에러]

Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory;nested exception is org.hibernate.exception.SQLGrammarException: Unable to open JDBC Connection for DDL execution

[기존 코드]

url: jdbc:mysql://localhost:8081/together?serverTimezone=UTF&charseterEncoding=UTF-8

[해결한 코드]

application.yml 파일에 다음 코드로 수정

url: jdbc:mysql://localhost:8081/together?serverTimezone=Asia/Seoul

jdbc:mysql://localhost:DB 포트번호/DB 이름?serverTimezone=Asia/Seoul

profile
기록기록기록기록기록

0개의 댓글

관련 채용 정보