리자

mysqldumpslow

· 2011-08-02 (화) 17:37:20 · 3297
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,462
기타 11-08-08 조회 3,440
기타 11-08-08 조회 3,966
기타 11-08-08 조회 1,826
기타 11-08-08 조회 1,608
JavaScript 11-08-07 조회 2,102
Flash 11-08-06 조회 3,269
기타 11-08-06 조회 2,138
정규표현식
[정규표현식]
11-08-06 조회 3,795
jQuery 11-08-05 조회 3,225
기타 11-08-05 조회 2,038
PHP 11-08-04 조회 5,057
기타 11-08-04 조회 3,383
기타 11-08-04 조회 3,724
JavaScript 11-08-03 조회 2,465
jQuery 11-08-03 조회 5,397
기타 11-08-03 조회 2,147
MySQL 11-08-02 조회 3,298
MySQL 11-07-27 조회 1,985
MySQL 11-07-25 조회 2,116
JavaScript 11-07-22 조회 2,059
기타 11-07-21 조회 2,924
기타 11-07-19 조회 1,558
기타 11-07-13 조회 4,040
JavaScript 11-07-12 조회 3,694
Flash 11-07-11 조회 4,709
기타 11-07-11 조회 1,686
기타 11-07-09 조회 2,143
jQuery 11-07-03 조회 2,217
PHP 11-07-01 조회 3,280