Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl

msaito0217
HOBBY

9 months ago

I created a web application.

 - Spring Boot (3.3.4)/maven

 - MySQL (driver: com.mysql.cj.jdbc.Driver)

 - thymeleaf

An element that seems to be related is the login function created using Spring Security.

Registration and updates can be performed without problems with a local connection, but after deploying with railway.app, the following error occurs.

> w.a.UsernamePasswordAuthenticationFilter : An internal error occurred while trying to authenticate the user.

> org.springframework.security.authentication.InternalAuthenticationServiceException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl

I have investigated in various ways but I cannot find the cause.

Looking at the log, it seems that the environment variables were successfully referenced, but the connection was rejected.

There seems to be nothing wrong with the URL or password.

Does anyone have any clues?

I would appreciate any help.

I'm Japanese and I'm using the translation function, so I apologize if the text sounds strange.

0 Replies