전체 글968 MySQL Slow Log Query 설정하는 방법 리눅스에 설치한 MySQL에 슬로우 로그 쿼리 보는 방법 테스트 환경 :OS : RHEL 6.5 64bitMySQL : MySQL 5.6.27-1 Enterprise 1. mysql의 설정 파일을 편집한다. # vi /usr/my.cnf 2. 아래의 내용을 추가 한다. [mysqld]long_query_time = 0.001 slow_query_log = 1slow_query_log_file = /var/log/mysql/slow_queries.loglog_queries_not_using_indexes = 0.001 long_query_time : 만약 1초로 하고 싶으면 1.0 이라고 입력해야 한다.log_queries_not_using_indexes : 인덱스를 사용하지 않은 쿼리도 slow_quer.. 2015. 12. 20. 이전 1 ··· 881 882 883 884 885 886 887 ··· 968 다음