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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
109 | 윈도우에서 ARP CACHE 삭제/초기화 하는 방법 | 위대한유저 | 2015.05.29 | 2694 |
108 | 리눅스에서 arp cache 삭제/초기화 하는 방법 | 위대한유저 | 2015.05.29 | 33972 |
107 | REDIS-3.0.1 설치 하기 | 위대한유저 | 2015.06.04 | 394 |
106 | PHP + redis(phpredis) 연동하기 | 위대한유저 | 2015.06.04 | 257 |
105 | XE 1.8.3 Release | 위대한유저 | 2015.06.11 | 1324 |
104 | ORA-65096: invalid common user or role name on oracle12c | 위대한유저 | 2015.07.08 | 183 |
103 | SORT 와 UNIQ 를 이용한 중복행의 정렬과 횟수 카운트 | 위대한유저 | 2015.07.08 | 256 |
102 | NL-00303: SYNTAX ERROR IN NV STRING | 위대한유저 | 2015.07.08 | 243 |
101 | error messag : Fatal error: Call to undefined function session_register() | 위대한유저 | 2015.07.08 | 746 |
100 | Aria from berserk | 위대한유저 | 2015.07.08 | 973 |
99 | XE 1.8.6 RELEASE | 위대한유저 | 2015.07.14 | 168 |
98 | [MySQL] ERROR 1457 (HY000): Failed to load routine after upgrade or migratrion | 관리자 | 2015.12.08 | 124 |
97 | error when installing calypso (wp-calypso) | 관리자 | 2015.12.31 | 147 |
96 | [MySQL] ERROR 1457 (HY000): Failed to load routine after upgrade or migratrion | 관리자 | 2015.12.31 | 61 |
95 | WordPress 4.4 “Clifford” | 관리자 | 2015.12.31 | 39 |