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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
154 | /etc/fstab 설정하기 [1] | 위대한유저 | 2009.01.29 | 234422 |
153 | /proc/meminfo 의 고찰! | 위대한유저 | 2009.09.16 | 190535 |
152 | telnet 커맨드를 이용한 메일발송 테스트 | 위대한유저 | 2009.11.29 | 121184 |
151 | 데비안(debian)계열에서 apt-get 사용하다 GPG 에러 발생시 | 위대한유저 | 2009.11.10 | 111881 |
150 | 구버전 MySQL(to 4.0) 에서 바이너리 로그 정리하기 | 위대한유저 | 2011.07.02 | 104510 |
149 | XE 업데이트(및 기타상황)에서 로그인이 되지 않을때 | 위대한유저 | 2011.10.06 | 82728 |
148 | XE 스팸성 엮인글 관리 | 위대한유저 | 2013.06.17 | 80721 |
147 | 제로보드4 에서 한글파일 다운로드가 되지 않을때 | 위대한유저 | 2010.01.24 | 79218 |
146 | FTP 상태코드 | 위대한유저 | 2009.08.28 | 78642 |
145 |
piwik analytics 사용시 이메일보고서의 그래프 내용중 한글이 깨지는문제
![]() | 위대한유저 | 2013.05.23 | 67767 |
144 | HTTP 응답코드 | 위대한유저 | 2009.04.02 | 64577 |
143 | debian repository (old version) | 위대한유저 | 2013.04.11 | 57270 |
142 | linux 에서 cisco console 연결하기 | 위대한유저 | 2013.03.28 | 46455 |
141 | Control-D 화면에 대한 고찰 | 위대한유저 | 2009.03.13 | 43872 |
140 | 리눅스에서 arp cache 삭제/초기화 하는 방법 | 위대한유저 | 2015.05.29 | 34281 |