리자

mysqldumpslow

· 2011-08-02 (화) 17:37:20 · 3303
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,403건

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

+
분류 제목 글쓴이 날짜 조회
JavaScript 11-08-11 조회 3,467
기타 11-08-08 조회 3,450
기타 11-08-08 조회 3,974
기타 11-08-08 조회 1,836
기타 11-08-08 조회 1,612
JavaScript 11-08-07 조회 2,108
Flash 11-08-06 조회 3,272
기타 11-08-06 조회 2,143
정규표현식
[정규표현식]
11-08-06 조회 3,799
jQuery 11-08-05 조회 3,231
기타 11-08-05 조회 2,042
PHP 11-08-04 조회 5,064
기타 11-08-04 조회 3,388
기타 11-08-04 조회 3,731
JavaScript 11-08-03 조회 2,475
jQuery 11-08-03 조회 5,407
기타 11-08-03 조회 2,152
MySQL 11-08-02 조회 3,304
MySQL 11-07-27 조회 1,993
MySQL 11-07-25 조회 2,121
JavaScript 11-07-22 조회 2,071
기타 11-07-21 조회 2,932
기타 11-07-19 조회 1,567
기타 11-07-13 조회 4,046
JavaScript 11-07-12 조회 3,698
Flash 11-07-11 조회 4,717
기타 11-07-11 조회 1,693
기타 11-07-09 조회 2,151
jQuery 11-07-03 조회 2,226
PHP 11-07-01 조회 3,292