MySQL 느린 쿼리 로그 기록하기

 

MySQL 느린 쿼리 로그 기록하기

my.cnf 파일의 [mysqld] 섹션에 아래 내용을 추가 한다.

log-slow-queries = /log/path/mysql-log-slow-queries.log
long_query_time = 1 # 1초 이상 걸리는 쿼리문을 기록

 

This entry was posted in Database and tagged , , , . Bookmark the permalink.

One Response to MySQL 느린 쿼리 로그 기록하기

댓글 남기기