当前位置:网站首页>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 .
边栏推荐
- JVM篇 笔记3:类加载与字节码技术
- Mysql处理遗留数据样例
- 蒙特卡罗方法求解圆周率π并用turtle画点,以及完成进度条问题
- repackag failed: Unable to find main class
- Low illumination image data set
- 2022 summer practice (first week)
- Arrangement of main drawings of the latest 54 papers of eccv22
- Image enhancement - msrcr
- MySQL uses list as a parameter to query
- Response<T>类
猜你喜欢

Writing methods of scientific research papers: add analysis and discussion in the method part to explain their contributions and differences

How Visio can quickly generate the same pattern and image matrix

Distillation model diagram

Edge calculation kubeedge+edgemash

ECCV22 最新54篇论文主图整理

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

Framework step by step easy-to-use process

IDEA配置 service(Run Dashboard) 服务,多模块同时启动

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

Long和Integer如何进行比较,为什么报错
随机推荐
Mybats foreach multi select query, index loop, and cancel the and/or tag
Docker deploy mysql5.7.35
Export excel, generate multiple sheet pages, and name them
Mabtis(一)框架的基本使用
Writing methods of scientific research papers: add analysis and discussion in the method part to explain their contributions and differences
多线程进阶:volatile的作用以及实现原理
When using \hl for highlighting, latex always reports an error when encountering a reference, showing that there are fewer or more parentheses
【MySQL】MySQL时区问题、数据库时间相差8小时问题解决
Pytorch uses hook to get feature map
ByteBuffer.position 抛出异常 IllegalArgumentException
冶金物理化学复习 ---- 气固反应动力学
Problems encountered when the registry service Eureka switches to nocas
Pytorch uses maxpool to realize image expansion and corrosion
RESNET structure comparison
IDEA配置 service(Run Dashboard) 服务,多模块同时启动
The way of deep learning thermodynamic diagram visualization
集合框架的操作使用
Distillation model diagram
lamda 获取当前循环数,AtomicInteger
JVM notes 3: class loading and bytecode Technology