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 -----错误代码随笔

 

 

 

 

这种报错主要是时区没有设置好,

1.在数据库后面“?”加上:useSSL=true&characterEncoding=UTF-8&useUnicode=true&serverTimezone=GMT

2.在旁边database中更改时区,借鉴这个:(148条消息) Idea连接mysql数据库设置时区_低山高水的博客-CSDN博客_idea mysql设置时区

 

posted @ 2022-08-24 22:52  迁啊  阅读(10)  评论(0编辑  收藏  举报