当前位置:网站首页>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’;
边栏推荐
- (construction notes) learn the specific technology of how to design reusable software entities from three levels: class, API and framework
- PHP export word method (phpword)
- 4000 word super detailed pointer
- 为什么我的mysql容器启动不了呢
- Download address and installation tutorial of vs2015
- Nestjs configuration service, configuring cookies and sessions
- vulnhub之raven2
- 错排问题 (抽奖,发邮件)
- DNS multi-point deployment IP anycast+bgp actual combat analysis
- Shutter: overview of shutter architecture (excerpt)
猜你喜欢
Php Export word method (One MHT)
Vulnhub pyexp
OPenGL 基本知识(根据自己理解整理)
Niuniu's team competition
Shardingsphere sub database and sub table < 3 >
Itext7 uses iexternalsignature container for signature and signature verification
Vulnhub geminiinc
Visual Studio 2022下载及配置OpenCV4.5.5
During FTP login, the error "530 login incorrect.login failed" is reported
win10 上PHP artisan storage:link 出现 symlink (): Protocol error的解决办法
随机推荐
Dart: about grpc (I)
Solve msvcp120d DLL and msvcr120d DLL missing
(database authorization - redis) summary of unauthorized access vulnerabilities in redis
Shutter: about inheritedwidget
Vulnhub's presidential
Kubernetes three dozen probes and probe mode
PHP get the file list and folder list under the folder
DEJA_ Vu3d - cesium feature set 053 underground mode effect
Symlink(): solution to protocol error in PHP artisan storage:link on win10
Socket TCP for network communication (I)
pragma-pack语法与使用
(构造笔记)GRASP学习心得
vulnhub之pyexp
Raven2 of vulnhub
[official MySQL document] deadlock
Colleagues wrote a responsibility chain model, with countless bugs
ArcGIS应用(二十一)Arcmap删除图层指定要素的方法
利用Zabbix动态监控磁盘I/O
Qt OpenGL 旋转、平移、缩放
vulnhub之GeminiInc v2