当前位置:网站首页>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’;
边栏推荐
- PHP導出word方法(一mht)
- Quantitative calculation research
- vulnhub之momentum
- (构造笔记)MIT reading部分学习心得
- Xiaopeng P7 hit the guardrail and the airbag did not pop up. The official responded that the impact strength did not meet the ejection requirements
- SystemVerilog -- OOP -- copy of object
- Vulnhub's Nagini
- 牛牛的组队竞赛
- Dart: about grpc (I)
- Flutter Widget : Flow
猜你喜欢
laravel 时区问题timezone
PHP导出word方法(一phpword)
Vulnhub's Nagini
XML (DTD, XML parsing, XML modeling)
Laravel time zone timezone
OpenGL draws colored triangles
AOSP ~ NTP (Network Time Protocol)
Socket TCP for network communication (I)
Xiaopeng P7 hit the guardrail and the airbag did not pop up. The official responded that the impact strength did not meet the ejection requirements
vulnhub之GeminiInc v2
随机推荐
【mysql官方文档】死锁
Socket TCP for network communication (I)
Kubernetes three dozen probes and probe mode
QT OpenGL texture map
Shell: basic learning
vulnhub之narak
为什么我的mysql容器启动不了呢
Flutter Widget : Flow
Redis notes 01: Introduction
(構造筆記)從類、API、框架三個層面學習如何設計可複用軟件實體的具體技術
抓包整理外篇fiddler———— 会话栏与过滤器[二]
PHP get the file list and folder list under the folder
win10 上PHP artisan storage:link 出现 symlink (): Protocol error的解决办法
rxjs Observable filter Operator 的实现原理介绍
Vulnhub's Tomato (tomato)
安装electron失败的解决办法
Dart: About zone
Basic knowledge of OpenGL (sort it out according to your own understanding)
XML (DTD, XML parsing, XML modeling)
Download address and installation tutorial of vs2015