当前位置:网站首页>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 )
边栏推荐
- RAII内存管理
- Lua Basics
- 可视化HTA窗体设计器-HtaMaker 界面介绍及使用方法,下载 | HTA VBS可视化脚本编写
- C console format code
- Raki's notes on reading paper: Leveraging type descriptions for zero shot named entity recognition and classification
- Global and Chinese market of Kanban software 2022-2028: Research Report on technology, participants, trends, market size and share
- 怎么使用Vant实现数据分页和下拉加载
- O & M (21) make winpe startup USB flash disk
- 发现mariadb数据库时间晚了12个小时
- Linear algebra Chapter 4 Summary of knowledge points of linear equations (Jeff's self perception)
猜你喜欢

Raki's notes on reading paper: neighborhood matching network for entity alignment

Raki's notes on reading paper: Leveraging type descriptions for zero shot named entity recognition and classification

Unity timeline data binding

Detailed explanation of minimum stack

GTK interface programming (I): Environment Construction

Série de tutoriels cmake - 02 - génération de binaires à l'aide du Code cmake

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

公司电脑强制休眠的3种解决方案

IBM WebSphere channel connectivity setup and testing

prompt learning 一个空格引发的血案
随机推荐
Mysql表数据比较大情况下怎么修改添加字段
What about punctuation in the first column of unity text
What should academic presentation /ppt do?
CMake教程系列-01-最小配置示例
如何在 JupyterLab 中把 ipykernel 切换到不同的 conda 虚拟环境?
List of development tools
Global and Chinese market of wind energy equipment logistics 2022-2028: Research Report on technology, participants, trends, market size and share
Lua 基础知识
Two methods of SSL certificate format conversion
c#控制台格式化代码
Unity timeline data binding
 与空格的区别
Linear algebra Chapter 3 summary of vector and vector space knowledge points (Jeff's self perception)
Global and Chinese markets for wireless security in LTE networks 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of subscription revenue management software 2022-2028: Research Report on technology, participants, trends, market size and share
Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing
2.8 【 weight of complete binary tree 】
2. < tag dynamic programming and 0-1 knapsack problem > lt.416 Split equal sum subset + lt.1049 Weight of the last stone II
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.
2. successfully solved bug:exception when publishing [Failed to connect and initialize SSH connection...