Spring
[Spring] sqlExceptionHelper() is null 에러
우주유령
2024. 7. 1. 17:25
728x90
반응형
mariaDB랑 spring이랑 연결하다가 "org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.sqlExceptionHelper()" is null
에러가 났다.
각각의 컴퓨터에서 mariaDB에 연결할 때 나는 오류로, 컴퓨터마다 세팅이 다르기 때문에 발생한다는 글을 발견했다.
https://perfect-dev.tistory.com/38
[Spring Boot] Caused by: org.hibernate.service.spi.ServiceException:
Error Message: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url
perfect-dev.tistory.com
알고 보니 여러 컴퓨터에서 접속하려면 그 컴퓨터를 허용하도록 뚫어주어야 한다.
모든 호스트에서 접속 가능하게 하려면 아래와 같이 하면 된다.
create user 'springuser'@'%' identified by 'ThePassword'; -- Creates the user
grant all on db_example.* to 'springuser'@'%'; -- Gives all privileges to the new user on the newly created database
참고
728x90
반응형