当前位置:网站首页>The MariaDB database was found 12 hours late
The MariaDB database was found 12 hours late
2022-06-30 02:58:00 【Yabingshi】
One Problem description
The current time is 2022 year 6 month 27 Japan 11:32, But I checked the current time in the database later than now 12 Hours :
SELECT NOW();
2022-06-26 23:30:51
Found that the time zone is the U.S. time zone (EDT), Non Chinese time zone :

Two Investigation thought
Look at the time zone of the operating system ( perform date command ), If the time zone of the operating system is incorrect , The time zone in the database will not be correct .
The operating system time zone needs to be modified ( Please refer to linux CST And EDT Time zone interchange _ Yabingshi's blog -CSDN Blog ), Then restart the database .
If you don't want to restart the online database , You can also execute commands :
SET global time_zone = '+8:00';
It's just set The command only takes effect for new connections , Will not change the existing connection .
So the previous connection or the previous time , I suggest restarting the database at night ( no need set global, Just restart the database directly )
边栏推荐
- Summary of interview and Employment Questions
- Raki's notes on reading paper: Leveraging type descriptions for zero shot named entity recognition and classification
- 2. 成功解决 BUG:Exception when publishing, ...[Failed to connect and initialize SSH connection...
- What is the concept of string in PHP
- 2022 new test questions for safety management personnel of metal and nonmetal mines (small open pit quarries) and certificate examination for safety management personnel of metal and nonmetal mines (s
- Federal learning: dividing non IID samples by Dirichlet distribution
- Intel hex, Motorola S-Record format detailed analysis
- Some technology sharing
- Redis+AOP怎么自定义注解实现限流
- Use of Arthas
猜你喜欢

High paid programmers & interview questions series 63: talk about the differences between sleep (), yield (), join (), and wait ()

Unity3d ugui force refresh of layout components

重磅来袭--UE5的开源数字孪生解决方案

A quick look at the statistical data of 23 major cyber crimes from 2021 to 2022

What is the difference between a layer 3 switch and a layer 2 switch

LeetCode 3. Longest substring without duplicate characters

Call collections Sort() method, compare two person objects (by age ratio first, and by name ratio for the same age), and pass lambda expression as a parameter.

Heavy attack -- ue5's open source digital twin solution

怎么利用Redis实现点赞功能

Some configuration details about servlet initial development
随机推荐
prompt learning 一个空格引发的血案
公司电脑强制休眠的3种解决方案
怎样的外汇交易平台是有监管的,是安全的?
IBM WebSphere channel connectivity setup and testing
原生JS怎么生成九宫格
Unity3d ugui force refresh of layout components
Summary of interview and Employment Questions
(graph theory) connected component (template) + strongly connected component (template)
What is the difference between a layer 3 switch and a layer 2 switch
How to set password complexity and timeout exit function in Oracle
自定义JvxeTable的按钮及备注下$set的用法
Use compose to realize the effect of selecting movie seats by panning tickets
shell统计某个字符串最后一次出现的位置之前的所有字符串
Unity3D UGUI强制刷新Layout(布局)组件
Global and Chinese market of mobile commerce solutions 2022-2028: Research Report on technology, participants, trends, market size and share
Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)
002 color classification
2.8 【 weight of complete binary tree 】
[Postgres] Postgres database migration
浅谈IDEA的优化和使用