当前位置:网站首页>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’;
边栏推荐
- OpenGL shader use
- Concurrent programming - singleton
- win10 上PHP artisan storage:link 出现 symlink (): Protocol error的解决办法
- 网络通讯之Socket-Tcp(一)
- Socket TCP for network communication (I)
- C language improvement article (wchar_t) character type
- Solve msvcp120d DLL and msvcr120d DLL missing
- rxjs Observable filter Operator 的实现原理介绍
- QT OpenGL texture map
- (database authorization - redis) summary of unauthorized access vulnerabilities in redis
猜你喜欢

Vulnhub's cereal

vulnhub之Nagini

Vulnhub geminiinc V2

Raven2 of vulnhub
![Capturing and sorting out external Fiddler -- Conversation bar and filter [2]](/img/04/e9cc027d753e7049f273d866eefdce.png)
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]

OpenGL index cache object EBO and lineweight mode

vulnhub之GeminiInc

Kubernetes three dozen probes and probe mode

Basic knowledge of OpenGL (sort it out according to your own understanding)

Shutter widget: centerslice attribute
随机推荐
[official MySQL document] deadlock
4000字超详解指针
Unity3d learning notes 5 - create sub mesh
DEJA_VU3D - Cesium功能集 之 053-地下模式效果
网络通讯之Socket-Tcp(一)
MySQL uses the method of updating linked tables with update
Simple factory and factory method mode
Differences between MySQL Union and union all
836. Merge sets (day 63) and search sets
typeScript
previous permutation lintcode51
Colleagues wrote a responsibility chain model, with countless bugs
vulnhub之presidential
Shutter widget: centerslice attribute
《剑指offer 04》二维数组查找
Solutions to the failure of installing electron
Unity3D学习笔记5——创建子Mesh
Cacti监控Redis实现过程
DEJA_ Vu3d - cesium feature set 053 underground mode effect
Visual studio 2022 downloading and configuring opencv4.5.5