Skip to Main Content

MySQL Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle SQL Developer MySQL JDBC Connector TimeZone error

User440483Apr 26 2019 — edited Apr 27 2019

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.

Comments

Gaz in Oz

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.

1 - 1

Post Details

Added on Apr 26 2019
1 comment
1,977 views