MySQL JDBC driver error "The server time zone value ... is unrecognized" in JBoss EAP

Solution Verified - Updated -

Issue

The MySQL JDBC driver raises an exception like the below (the unrecognized time zone string may differ with locale)

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

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7
    • 6
  • MySQL Connector/J 8
    • MySQL 8
    • MySQL 5.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content