Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL 5.7 日志时间与系统时间不一致的问题 #2

Open
git-zjx opened this issue Jun 18, 2019 · 0 comments
Open

MySQL 5.7 日志时间与系统时间不一致的问题 #2

git-zjx opened this issue Jun 18, 2019 · 0 comments
Assignees
Labels
MySQL MySQL Tips Tips

Comments

@git-zjx
Copy link
Owner

git-zjx commented Jun 18, 2019

简介

MySQL 在 5.7.2 版本中新增了 log_timestamps 控制 error log、slow_log、genera log,等等记录日志的显示时间参数,但不会影响 general log 和 slow log 写到表 (mysql.general_log, mysql.slow_log) 中的显示时间

设置

可以被设置的值有:UTC 和 SYSTEM,默认使用 UTC

log_timestamps='SYSTEM'

@git-zjx git-zjx added MySQL MySQL Tips Tips labels Jun 18, 2019
@git-zjx git-zjx self-assigned this Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MySQL MySQL Tips Tips
Projects
None yet
Development

No branches or pull requests

1 participant