1

I use springboot, maven, connector: mysql-connector-java-8.0.11 in local, system windows. I have this error,

java.sql.SQLException: The server time zone value 'Hora de verano GMT' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

I have modified in mysql file my.ini, I have put: timezone='UTC'. I have changed to mysql-connector-java-8.0.12, the same error. I have tried, 5.1.46, I have been other error.

Thank you

SoConfused
  • 1,799
  • 3
  • 12
  • 18
Javier Elorduy
  • 99
  • 1
  • 1
  • 8

1 Answers1

9

I found the answer.

spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://localhost:3306/database?useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
spring.datasource.username=user
spring.datasource.password=passwprd
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect

Thanks

Marv
  • 3,517
  • 2
  • 22
  • 47
Javier Elorduy
  • 99
  • 1
  • 1
  • 8