Forum Stats

  • 3,781,417 Users
  • 2,254,514 Discussions
  • 7,879,682 Comments

Discussions

Oracle SQL Developer MySQL JDBC Connector TimeZone error

User440483
User440483 Member Posts: 3
edited Apr 27, 2019 1:34AM in MySQL Community Space

I need to find out how to change my JDBC connection string when using mysql-connector-java-8.0.13.jar for 3rd party JDBC connections.

I get this error:

-------

The server time zone value 'EDT' 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.

Vendor code 0

After reading this : Connecting to MySQL 8.0

I cannot modify my server parameters.

So I want try something like this:

1771220 Nov 16, 2018 10:05 PM (in response to 7392a252-c6e5-48f9-9c5c-40549ba059a1)

For SQL Developer, there is a connection hack that worked for me when there was a timezone mismatch between the client and server.

(In my case I could not modify the server parameters.) The hack exploits the fact that the Port field is just appended to the connection URL as a string.

So something like this works.

Where would I be able to make this connection string change in Oracle SQL Developer version 19.1.0.094?

3306/?serverTimezone=America/Winnipeg&dummyparam=

I needed the dummyparam= at the end to protect against URL format errors when the trailing slash gets appended.

Answers

  • Gaz in Oz
    Gaz in Oz Member Posts: 3,785 Bronze Crown
    edited Apr 27, 2019 1:34AM

    That particular post is referring to the Port field in the SQL Developer -> Connections -> MySQL Connection tab.

    Other posts in that thread that specify jdbc:mysql: explicitly is configured under the Connectios -> Oracle Connections tab with a Connection type of Advanced.