Exception: the server time zone value ‘Ö Ð¹ ú±ê ×¼ ʱ ¼ ä’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configurat
•
Java
Exception:
The server time zone value 'Ö Ð¹ ú±ê ×¼ ʱ ¼ ä' 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. Scenario:
When Java connects to MySQL, the connection fails. Solution:
Modify database time zone 1 Execute the following statement in MySQL: set global time_ zone='+8:00'; 2. Modify the URL of the database connection and add the following parameters (specify the time zone): servertimezone = GMT
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码