![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
玄月沐影
there is plan, and there is work.
展开
-
关于Mysql数据库时间和查询出来的时间不一致问题
原因:Mybatis连接Mysql的URL使用的时区与Mysql使用的不一致url: jdbc:mysql://127.0.0.1:3306/searchall?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTCURL用的是serverTimezone=UTC解决方法:修改spring.datasource.url后面的serverTimezone=UTC为serverTimezo原创 2021-01-20 22:39:13 · 496 阅读 · 0 评论 -
The server time zone value ‘�й���ʱ��‘ is unrecognized or represents more than one time zone.
url中加上:&serverTimezone=UTC原因估计是sql版本问题,以及MySQL的时区未设置原创 2021-01-11 10:02:05 · 74 阅读 · 0 评论