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 | Contributor Weekend: Support Forums | 관리자 | 2016.01.23 | 80 |
81 | install proftpd with account in sql | 관리자 | 2016.01.26 | 48 |
80 | 그누보드 짧은 주소 작성 (nginx) | 관리자 | 2016.02.02 | 54 |
79 | 그누보드 짧은 주소 작성 (httpd,apache) | 관리자 | 2016.02.03 | 34 |
78 | How to solve “Unable to run mksdcard SDK tool” when installing Android Studio on Centos7 | 관리자 | 2016.02.06 | 143 |
77 | 안드로이드 스튜디오 단축키 (공식) | 관리자 | 2016.02.12 | 29 |
76 | 알아두면 유용한 안드로이드 스튜디오의 단축키 | 관리자 | 2016.02.12 | 21 |
75 | cannot resolve symbol R on android studio | 관리자 | 2016.02.17 | 65 |
74 | Experiment: WordCamp Incubator | 관리자 | 2016.02.19 | 21 |
73 | php + freetds for mssql on linux | 관리자 | 2016.02.24 | 17 |
72 | install pptpd on linux (centos) | 관리자 | 2016.02.26 | 22 |
71 | firewalld 기반의 접근제어 사용하기 | 관리자 | 2016.03.15 | 21 |
70 | FortiGate configure manage ip on CLI | 관리자 | 2016.03.16 | 16 |
69 | /etc/sysconfig/iptables 에 포트 리다이렉션 추가해 주기 | 관리자 | 2016.03.25 | 34 |
68 | keepalive + LVS on centos7 | 관리자 | 2016.03.31 | 30 |