真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

Mysql5.7錯誤日志時(shí)間不對的解決辦法-創(chuàng)新互聯(lián)

 MySQL 5.7的錯誤日志時(shí)間和系統(tǒng)時(shí)間不一致,看起來費(fèi)勁,查閱官方文檔得知從MySQL 5.7.2 開始,新增了 log_timestamps 參數(shù),它主要是控制 error log、genera log等日志文件的顯示時(shí)間參數(shù):
官文如下:
This variable controls the timestamp time zone of error log messages, and of general query log and slow query log messages written to files. It does not affect the time zone of general query log and slow query log messages written to tables (mysql.general_log, mysql.slow_log). Rows retrieved from those tables can be converted from the local system time zone to any desired time zone with CONVERT_TZ() or by setting the session time_zone system variable.

創(chuàng)新互聯(lián)是專業(yè)的龍泉驛網(wǎng)站建設(shè)公司,龍泉驛接單;提供成都網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì),網(wǎng)頁設(shè)計(jì),網(wǎng)站設(shè)計(jì),建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行龍泉驛網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴(kuò)展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊(duì),希望更多企業(yè)前來合作!

Permitted log_timestamps values are UTC (the default) and SYSTEM (local system time zone).

Timestamps are written using ISO 8601 / RFC 3339 format: YYYY-MM-DDThh:mm:ss.uuuuuu plus a tail value of Z signifying Zulu time (UTC) or ±hh:mm (an offset from UTC).

This variable was added in MySQL 5.7.2. Before 5.7.2, timestamps in log messages were written using the local system time zone by default, not UTC. If you want the previous log message time zone default, set log_timestamps=SYSTEM.
做了如下修改后,顯示正常了:

點(diǎn)擊(此處)折疊或打開


本文題目:Mysql5.7錯誤日志時(shí)間不對的解決辦法-創(chuàng)新互聯(lián)
分享鏈接:http://weahome.cn/article/cdpjoj.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部