mysql-5.7 사용중에 sql에 의한 time은 시스템 시간과 동일하게 잘 맞는데.. log(error, slow 등)파일의 timestamp만 내가 사용하는 KST 가 적용되지 않고 9시간 전인 UTC로 되어있다 이말이지… 그래서 찾아봤더니.. 5.7.2 부터 log_timestamps 가 추가되었데… ㅅㅂ 기본값이 UTC설정이라 log_timestamps=SYSTEM 이렇게 처리를 해줘야 한댄다… 출처 : http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_log_timestamps log_timestamps Introduced 5.7.2 Command-Line Format --log_timestamps=# System Variable Name log_timestamps Variable Scope Global Dynamic Variable Yes Permitted Values Type enumeration Default UTC Valid Values UTC SYSTEM 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 [ more... ]
The post log timestamp timezone in mysql-5.7 appeared first on 지락문화예술공작단.
원문출처 : https://jirak.net/wp/log-timestamp-timezone-mysql-5-7/
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
82 | WordPress 4.9 Beta 3 | 관리자 | 2017.10.20 | 291 |
81 | The Month in WordPress: November 2017 | 관리자 | 2017.12.02 | 278 |
80 | WordPress 4.8.3 Security Release | 관리자 | 2017.11.01 | 273 |
79 | WordPress 4.9 Release Candidate 2 | 관리자 | 2017.11.09 | 257 |
78 | php-fpm.sock failed (13: Permission denied) on nginx | 관리자 | 2016.01.13 | 220 |
77 | 인터넷 익스플로러에서 마우스 휠 스크롤이 작동하지 않을 때 | 관리자 | 2017.01.08 | 174 |
76 | WordPress 4.4.1 Security and Maintenance Release | 관리자 | 2016.01.07 | 162 |
75 | Unable to validate certificate chain in aws elb – comodossl | 관리자 | 2016.09.06 | 160 |
74 | error when installing calypso (wp-calypso) | 관리자 | 2015.12.31 | 147 |
73 | How to solve “Unable to run mksdcard SDK tool” when installing Android Studio on Centos7 | 관리자 | 2016.02.06 | 143 |
72 | MySQL 5.7의 새로운 기능에 대해서 소개합니다. – 2편 | 관리자 | 2016.01.12 | 133 |
71 | AWS 자격증 시험 신청 하기 | 관리자 | 2017.09.19 | 131 |
70 | samba failing to start after centos7.2(rhel7.2) update | 관리자 | 2016.01.04 | 120 |
69 | MySQL 5.7 에 대해서 소개합니다. – 1편 | 관리자 | 2016.01.12 | 107 |
68 | config static port for nfsd on centos7 | 관리자 | 2016.05.21 | 99 |