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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
34 | PHP 지원기간 안내 (PHP Supported Versions) | 위대한유저 | 2015.04.03 | 94 |
33 | 윈도우폰에서 앱 설치가 되지 않을때 | 위대한유저 | 2015.03.28 | 267 |
32 | 삼바 사용시 smb_pwd_check_ntlmv1: incorrect password length 에러 대처 | 위대한유저 | 2015.03.18 | 455 |
31 | CVE-2015-0235 GHOST BUG | 위대한유저 | 2015.02.05 | 617 |
30 | cacti-0.8.8c 버전에서의 주의점 | 위대한유저 | 2015.02.03 | 785 |
29 | yum update error: "error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"" | 위대한유저 | 2015.01.30 | 1542 |
28 | xfce4 on centos7(rhel7) | 위대한유저 | 2015.01.28 | 2871 |
27 | 리눅스 virtualbox에서 게스트os에 usb드라이브 마운트 안된다면... | 위대한유저 | 2015.01.20 | 472 |
26 | 윈도우 원격데스크탑 포트변경하기 | 위대한유저 | 2015.01.10 | 407 |
25 | IIS의 ASP페이지에서 데이터베이스 연결을 만드는 방법 | 위대한유저 | 2014.12.14 | 477 |
24 | atime, mtime, ctime 의 차이점 | 위대한유저 | 2014.11.27 | 1053 |
23 | hdparm 을 이용한 디스크 초기화 | 위대한유저 | 2014.11.14 | 1176 |
22 | IE 확대/축소 기능끄기 | 위대한유저 | 2014.07.01 | 2477 |
21 | 넷북 환경에서 윈도우 8.1 업데이트 하기 | 위대한유저 | 2014.05.14 | 3534 |
20 | centos 기반에서 tftp 서비스 활성화하기 | 위대한유저 | 2014.03.21 | 16523 |