错误 #
查看后台日志会发现主要就是timezone错误,错误内容如下:
The server time zone value 'PDT' 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.
解决方案 #
在mysql中设置时区,默认为SYSTEM(推荐)
set global time_zone=’+8:00’
mysql> set global time_zone='+8:00';
Query OK, 0 rows affected (0.01 sec)