Env: Windows 10 Mysql 5.7.x Jdk1.8.x Mysql Connector Java 6.0.5
ERROR:
mysql java.sql.SQLException: 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.
修正方法:
方法1: 在服务端设置服务器全局的时区 方法2: 在JDBC连接串中添加时区设置参数 方法3: 待定, https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html#time-zone-installation
参考资料: