org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [org.hibernate.dialect.MySQL5InnoDBDialect] 오류 해결
2023. 6. 11. 19:48ㆍ포트폴리오/오류 해결
org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [org.hibernate.dialect.MySQL5InnoDBDialect] 오류 해결
application.properties 파일에서 MySQL 버전 확인하기!!
※ 문제 발생 ※
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
※ 문제 해결 ※
1. 버전 정보 확인 후 수정(MySQL8Dialect)
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
2. 버전 상관없이(MySQLDialect)
- 이 방법이 버전 업데이트해도 오류날 걱정 없어서 더 좋을것같다.
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLDialect
MySQL 버전 확인 방법
Window 검색창 > MySQL Shell 검색 후 버전 정보 알기