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>
/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>
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6052 | 9년 전 | 576 | ||
| 6051 | 9년 전 | 565 | ||
| 6050 | 9년 전 | 941 | ||
| 6049 | 9년 전 | 328 | ||
| 6048 | 9년 전 | 554 | ||
| 6047 | 9년 전 | 685 | ||
| 6046 | 9년 전 | 680 | ||
| 6045 | 9년 전 | 623 | ||
| 6044 | 9년 전 | 578 | ||
| 6043 | 9년 전 | 748 | ||
| 6042 | 9년 전 | 468 | ||
| 6041 | 9년 전 | 538 | ||
| 6040 | 9년 전 | 419 | ||
| 6039 | 9년 전 | 369 | ||
| 6038 | 9년 전 | 380 | ||
| 6037 | 9년 전 | 356 | ||
| 6036 | 9년 전 | 359 | ||
| 6035 | 9년 전 | 332 | ||
| 6034 | 9년 전 | 335 | ||
| 6033 | 9년 전 | 818 | ||
| 6032 | 9년 전 | 354 | ||
| 6031 | 9년 전 | 303 | ||
| 6030 | 9년 전 | 337 | ||
| 6029 | 9년 전 | 305 | ||
| 6028 | 9년 전 | 342 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기