
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=UTC URL用的是serverTimezone=UTC 解决方法:修改spring.datasource.url后面的serverTimezone=UTC为serverTimezo原创 2021-01-20 22:39:13 · 558 阅读 · 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 · 116 阅读 · 0 评论