메뉴 건너뛰기

GREATUSER

tech

ETC log timestamp timezone in mysql-5.7

관리자 2016.05.12 20:00 조회 수 : 37

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/
번호 제목 글쓴이 날짜 조회 수
34 How to download and install prebuilt OpenJDK packages in LINUX(redhat and ubuntu) 관리자 2018.04.24 1226
33 XE 1.8.3 Release 위대한유저 2015.06.11 1324
32 yum update error: "error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"" 위대한유저 2015.01.30 1542
31 mysql server system variables log_warnings to log_error_verbosity 관리자 2016.10.05 1680
30 XE 1.8.2까지의 버전에서 슬라이드 사용안함 속성이 반영 안되는 문제 위대한유저 2015.05.21 1755
29 error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE in PHP (after update centos-7.4) 관리자 2017.11.15 1839
28 mysql error : No data – zero rows fetched, selected, or processed 관리자 2016.04.06 2058
27 IE 확대/축소 기능끄기 위대한유저 2014.07.01 2477
26 윈도우에서 ARP CACHE 삭제/초기화 하는 방법 위대한유저 2015.05.29 2694
25 xfce4 on centos7(rhel7) 위대한유저 2015.01.28 2871
24 넷북 환경에서 윈도우 8.1 업데이트 하기 위대한유저 2014.05.14 3534
23 net use 사용시 시스템 오류 58(이)가 생겼습니다. 위대한유저 2015.04.08 6082
22 [python] 현재 실행중인 함수 이름 구하기 (sys._getframe().f_code.co_name) 관리자 2018.03.28 7305
21 아파치(httpd) ServerTokens 설정 위대한유저 2014.03.16 8657
20 Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP 위대한유저 2014.01.01 14133
위로