当前位置:网站首页>MySQL time zone solution
MySQL time zone solution
2022-07-03 12:07:00 【Dull Yanan】
Add... After the connection string ?serverTimezone=UTC
among UTC It's universal time .
Complete connection string example :jdbc:mysql://localhost:3306/test?serverTimezone=UTC
Or there's another option :jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=UTF-8, This is to solve the problem of Chinese random code input , Of course, it can also be combined with the above :jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
perhaps
?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
If the problem cannot be solved, execute it in the database sql sentence :
Or directly at cmd-mysql perform
show variables like ‘%time_zone%’;
set global time_zone=’+08:00’;
边栏推荐
猜你喜欢
随机推荐
Master and backup role election strategy in kept
DEJA_ Vu3d - 054 of cesium feature set - simulate the whole process of rocket launch
Notes on 32-96 questions of sword finger offer
Dart: view the dill compiled code file
Qt+vtk+occt reading iges/step model
vulnhub之Nagini
OPenGL 基本知识(根据自己理解整理)
[learning notes] DP status and transfer
Unity3d learning notes 5 - create sub mesh
Colleagues wrote a responsibility chain model, with countless bugs
OpenGL 着色器使用
Extrapolated scatter data
vulnhub之presidential
Shardingsphere sub database and sub table < 3 >
vulnhub之Ripper
MCDF实验1
vulnhub之pyexp
Groovy test class and JUnit test
Qt OpenGL 旋转、平移、缩放
Basic knowledge of OpenGL (sort it out according to your own understanding)


![[learning notes] DP status and transfer](/img/5e/59c64d2fe08b89fba2d7e1e6de2761.png)






