当前位置:网站首页>You must configure either the server or JDBC driver (via the ‘serverTimezone)
You must configure either the server or JDBC driver (via the ‘serverTimezone)
2022-07-28 05:39:00 【jekyhu】
One 、 error message :
use SpringBoot The project with MyBatis An error occurred when connecting to the database :You must configure either the server or JDBC driver (via the 'serverTimezone)
Two 、 reason :
Because of the installation mysql The time zone is not set correctly mysql The default is the time zone of the United States .
3、 ... and 、 terms of settlement :
(1) Add... After the database name
?&serverTimezone=Asia/ShanghaiHere's the picture :

(2) Or in the graphical interface Navicat Premium Add a statement to :
set global time_zone='+8:00';
Pictured , The problem can be solved .
(3) take MySQL Version down , This problem will not occur in the lower version .
There is time because the creation is springboot project , stay pom Add MySQL rely on , No version number is set , because springboot Internal configuration too . Its configured version number is 8.0.13 Because of MySQL The version of is too high .
边栏推荐
- openjudge:找出全部子串位置
- 冶金物理化学复习 --- 气-液相反应动力学
- IO流的使用
- regular expression
- Tomato timing dimming table lamp touch chip-dlt8t10s-jericho
- 图像增强——MSRCR
- The difference between get and post
- Openjudge: count the number of numeric characters
- Response < t > class
- Advanced multi threading: the underlying principle of synchronized, the process of lock optimization and lock upgrade
猜你喜欢

论文模型主图范例

多线程进阶:synchronized底层原理,锁优化、锁升级的过程

ByteBuffer. Position throws exception illegalargumentexception

自定义Json返回数据

多模块打包:程序包:xxx不存在

Thesis writing function words

The Monte Carlo method solves the PI and draws points with turtle, and completes the progress bar problem

Personal summary of restful interface use

FusionGAN代码学习(一)

【idea插件神器】教你如何使用IDEA一键set实体类中所有属性
随机推荐
【单例模式】懒汉模式的线程安全问题
openjudge:统计数字字符个数
The difference between get and post
集合框架的操作使用
Openjudge: count the number of numeric characters
Digital twin technology creates visual application of smart mine
pytorch 计算模型的GFlops和total params的方法
多线程进阶:锁的策略
ssm项目快速搭建项目配置文件
Eccv2022 | 29 papers of Tencent Youtu were selected, including face security, image segmentation, target detection and other research directions
关于swagger中的localDateTime
Docker deploy mysql5.7.35
SimpleDateFormat线程不安全和DateTimeFormatter线程安全
动态卷积的本质
openjudge:找第一个只出现一次的字符
2021CSDN博客之星评选,互投
Mybats foreach multi select query, index loop, and cancel the and/or tag
数据库面试
Redis 之布隆过滤器
BeanUtils.copyProperties无法复制不同List集合问题解决 Lists.transform函数