MySQL 8.0.18 錯誤日誌時間慢了8個小時

lhrbest發表於2020-02-11



8.0.18 錯誤日誌時間慢了8個小時
2019-10-29T07:58:56.684916Z 0 [Note] [MY-011503] [Repl] Plugin group_replication reported: 'Group membership changed to 192.xxx.xxx.xxx:3316, 192.xxx.xxx.xxx:3316, 192.xxx.xxx.xxx:3316 on view 15723358711210252:3.'
2019-10-29T07:58:56.705588Z 19 [Note] [MY-010914] [Server] Aborted connection 19 to db: 'unconnected' user: 'rpl_user' host: '192.xxx.xxx.xxx' (failed on flush_net()).
2019-10-29T07:58:58.053213Z 0 [Note] [MY-011492] [Repl] Plugin group_replication reported: 'The member with address 192.xxx.xxx.xxx:3316 was declared online within the replication group.'


作業系統
[root@mgr1 logs]# date
Tue Oct 29 16:13:53 CST 2019


mysql> show variables like "%time_zone%"
-> ;
+------------------+--------+
| Variable_name | Value |
+------------------+--------+
| system_time_zone | CST |
| time_zone | +08:00 |
+------------------+--------+
2 rows in set (0.01 sec)

mysql>


[root@mgr1 logs]#

mysql> select now();
+---------------------+
| now() |
+---------------------+
| 2019-10-29 16:15:42 |
+---------------------+
1 row in set (0.00 sec)

mysql>

 

解決:
[root@mgr1 ~]# timedatectl status
Local time: Tue 2019-10-29 16:11:24 CST
Universal time: Tue 2019-10-29 08:11:24 UTC
RTC time: Tue 2019-10-29 08:14:22
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
[root@mgr1 ~]#


mysql> show variables like 'log_timestamps';
+----------------+-------+
| Variable_name | Value |
+----------------+-------+
| log_timestamps | UTC |
+----------------+-------+
1 row in set (0.00 sec)


log_timestamps 預設取的是UTF時間所以是有問題的
set persist log_timestamps=system;
[mysqld]
log_timestamps=system






About Me

........................................................................................................................

● 本文作者:小麥苗,部分內容整理自網路,若有侵權請聯絡小麥苗刪除

● 本文在itpub、部落格園、CSDN和個人微 信公眾號( xiaomaimiaolhr)上有同步更新

● 本文itpub地址: http://blog.itpub.net/26736162

● 本文部落格園地址: http://www.cnblogs.com/lhrbest

● 本文CSDN地址: https://blog.csdn.net/lihuarongaini

● 本文pdf版、個人簡介及小麥苗雲盤地址: http://blog.itpub.net/26736162/viewspace-1624453/

● 資料庫筆試面試題庫及解答: http://blog.itpub.net/26736162/viewspace-2134706/

● DBA寶典今日頭條號地址: http://www.toutiao.com/c/user/6401772890/#mid=1564638659405826

........................................................................................................................

● QQ群號: 230161599 、618766405

● 微 信群:可加我微 信,我拉大家進群,非誠勿擾

● 聯絡我請加QQ好友 646634621 ,註明新增緣由

● 於 2020-02-01 06:00 ~ 2020-02-31 24:00 在西安完成

● 最新修改時間:2020-02-01 06:00 ~ 2020-02-31 24:00

● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解

● 版權所有,歡迎分享本文,轉載請保留出處

........................................................................................................................

小麥苗的微店https://weidian.com/s/793741433?wfr=c&ifr=shopdetail

小麥苗出版的資料庫類叢書http://blog.itpub.net/26736162/viewspace-2142121/

小麥苗OCP、OCM、高可用網路班http://blog.itpub.net/26736162/viewspace-2148098/

小麥苗騰訊課堂主頁https://lhr.ke.qq.com/

........................................................................................................................

使用 微 信客戶端掃描下面的二維碼來關注小麥苗的微 信公眾號( xiaomaimiaolhr)及QQ群(DBA寶典)、新增小麥苗微 信, 學習最實用的資料庫技術。

........................................................................................................................

歡迎與我聯絡

 

 



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2675180/,如需轉載,請註明出處,否則將追究法律責任。

相關文章