在连接mysql数据库时出错:The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone

  这个错误是时区导致的,所以需要在配置连接url后面加上时区:

url=jdbc:mysql://localhost:3309/test?serverTimezone=UTC

  其中UTC是统一标准世界时间。

posted on 2018-01-21 16:38  程序员AI  阅读(174)  评论(0编辑  收藏  举报

导航