리자

mysqldumpslow

· 2011-08-02 (화) 17:37:20 · 3324
slowquery.log 를 분석한다

/etc/my.cnf 에

[mysqld]
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data

를 설정한다.


mysqldumpslow -s c

-s sort_type
How to sort the output. The value of sort_type should be chosen from the following list:
t, at: Sort by query time or average query time
l, al: Sort by lock time or average lock time
r, ar: Sort by rows sent or average rows sent
c: Sort by count
By default, mysqldumpslow sorts by average query time (equivalent to -s at).<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:27:00 MySQL에서 이동 됨]</div>
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,404건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
PHP 11-08-12 조회 2,539
JavaScript 11-08-11 조회 3,498
기타 11-08-08 조회 3,477
기타 11-08-08 조회 3,999
기타 11-08-08 조회 1,852
기타 11-08-08 조회 1,634
JavaScript 11-08-07 조회 2,129
Flash 11-08-06 조회 3,299
기타 11-08-06 조회 2,163
정규표현식
[정규표현식]
11-08-06 조회 3,832
jQuery 11-08-05 조회 3,258
기타 11-08-05 조회 2,066
PHP 11-08-04 조회 5,092
기타 11-08-04 조회 3,413
기타 11-08-04 조회 3,755
JavaScript 11-08-03 조회 2,491
jQuery 11-08-03 조회 5,430
기타 11-08-03 조회 2,174
MySQL 11-08-02 조회 3,325
MySQL 11-07-27 조회 2,016
MySQL 11-07-25 조회 2,148
JavaScript 11-07-22 조회 2,094
기타 11-07-21 조회 2,953
기타 11-07-19 조회 1,589
기타 11-07-13 조회 4,064
JavaScript 11-07-12 조회 3,720
Flash 11-07-11 조회 4,745
기타 11-07-11 조회 1,725
기타 11-07-09 조회 2,181
jQuery 11-07-03 조회 2,257