메뉴 건너뛰기

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/
번호 제목 글쓴이 날짜 조회 수
67 Mozilla SSL Configuration Generator 관리자 2016.10.15 47
66 mysql server system variables log_warnings to log_error_verbosity 관리자 2016.10.05 1680
65 [MariaDB] InnoDB: Redo log crypto: failed to decrypt log block 관리자 2016.09.28 76
64 [mysql] Buffered warning: Could not increase number of max_open_files to more than 1024 on centos 관리자 2016.09.08 95
63 Unable to validate certificate chain in aws elb – comodossl 관리자 2016.09.06 160
62 WordPress 4.6 “Pepper” 관리자 2016.08.17 46
61 리눅스 서버의 TCP 네트워크 성능을 결정짓는 커널 파라미터 이야기 – 3편 관리자 2016.08.12 76
60 리눅스 서버의 TCP 네트워크 성능을 결정짓는 커널 파라미터 이야기 – 2편 관리자 2016.08.12 69
59 리눅스 서버의 TCP 네트워크 성능을 결정짓는 커널 파라미터 이야기 – 1편 관리자 2016.08.12 75
58 WordPress 4.6 Release Candidate 관리자 2016.07.28 42
57 Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MariaDB client in /home1/htdocs/apartzm/affisacc/php/acc_tongys.inc.php on line 188ERROR 1251: Client does not smysql_connect(): Client 관리자 2016.07.26 66
56 WordPress 4.6 Beta 3 관리자 2016.07.14 33
55 mysqlbinlog: unknown variable ‘default-character-set=utf8’ 관리자 2016.07.09 65
54 WordPress 4.6 Beta 1 관리자 2016.06.30 36
53 $_SERVER[‘SERVER_SOFTWARE’]=’Apache’ in wp-config.php 관리자 2016.06.24 50
위로