mysql java.sql.SQLException: The server time zone value '?й???????' is unrecognized or represents more than one time zone.

Reprinted:   https://blog.csdn.net/oppo5630/article/details/52162783

 

Solve mysql database connection error:

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.

 

Database using mysql, 8.0.16 is driven, which is due to the difference in the time zone database and the system caused by the url jdbc back connection coupled serverTimezone = GMT to solve the problem, if required gmt + 8 time zone, to be written in GMT% 2B8, otherwise it will be resolved to empty. Still another solution is the use of low version of the MySQL jdbc driver, 5.1.28 time zone problem will not exist.

Guess you like

Origin www.cnblogs.com/Latiny/p/11080225.html