[bug]mysql: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone

原因:

时区设置有误

解决:

在mysql中修改时区设置:

在JDBC代码中增加时区设置:

Connection c = DriverManager.getConnection(
"jdbc:mysql://127.0.0.1:3306/mysql?serverTimezone=GMT%2B8&characterEncoding=UTF-8&useSSL=false",
"root", "Password");

原文地址:https://www.cnblogs.com/cxc1357/p/12489527.html