Skip to content

조회 수 8734 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
mytop 이란 ?

   mytop은 콘솔기반(그래픽기반이 아님)으로 mysql 3.22.X, 3.23.X, 4.X대의  threads 와 모든 perfomance를 모니터링 해주는
   툴이다. mytop은 대부분의 unix 머신에서 동작하며 ( mac os X 포함 ) 이를 위해서는 시스템에 perl,DBI,Term::ReadKey 패
   키지들이 설치되어 있어야 합니다.만약 Term::ANSIColor 패키지가 설치되어 있다면 모니터링결과를 color 로 확인하실수
   있으며 Time::HiRes 패키지가 설치되어있다면 초당 쿼리를 실시간으로 확인하실수 있게 됩니다.

필요한것들

   Perl 5.005 또는 이상
   Getopt :: logn
   DBI                  
   DBD-mysql      
   Term-ReadKey  
   ANSIColor        
   Mytop              

패키지

DownLoad 위치

  Mytop

  http://jeremy.zawodny.com/mysql/mytop/

  DBI

  http://search.cpan.org/dist/DBI/ 

  DBD

  http://search.cpan.org/~rudy/DBD-mysql-2.9004

  Term-Readkey

  http://search.cpan.org/dist/TermReadKey

  ANSIColor

  http://search.cpan.org/dist/ANSIColor/



지원 플랫폼

   Linux (2.2.x , 2.4.x)
   FreeBSD (2.2,3.x,4.x)
   Mac OS X
   BSDI 4.x
   Solaris 2.x
   Windows NT 4.x ( ActivePerl )


설치하기

1.DBI 설치

   [root@soma src]# tar -xvzf DBI-1.46.tar.gz
   [root@soma src]# cd DBI-1.46
   [root@soma DBI-1.46]# perl Makefile.PL
   [root@soma DBI-1.46]# make
   [root@soma DBI-1.46]# make install


2.DBD-mysql 설치

   [root@soma src]# tar -xvzf DBD-mysql-2.9004.tar.gz
   [root@soma src]# cd  DBD-mysql-2.9004
   [root@soma DBD-mysql-2.9004]# perl Makefile.PL
   [root@soma DBD-mysql-2.9004]# make

   [root@soma DBD-mysql-2.9004]# make install


3.TermReadkey 설치

   [root@soma src]# tar -xvzf TermReadkey-2.21.tar.gz
   [root@soma src]# cd TermReadkey-2.21
   [root@soma TermReadkey-2.21]# perl Makefile.PL
   [root@soma TermReadkey-2.21]# make

   [root@soma TermReadkey-2.21]# make install


4.ANSIColor 설치

   [root@soma src]# tar -xvzf ANSIColor-1.09.tar.gz
   [root@soma src]# cd ANSIColor-1.09
   [root@soma ANSIColor-1.09]# perl Makefile.PL
   [root@soma ANSIColor-1.09]# make

   [root@soma ANSIColor-1.09]# make install


5.Time-HiRes 설치

   [root@soma src]# tar -xvzf Time-HiRes-1.66.tar.gz
   [root@soma src]# cd Time-HiRes-1.66
   [root@soma Time-HiRes-1.66]# perl Makefile.PL
   [root@soma Time-HiRes-1.66]# make

   [root@soma Time-HiRes-1.66]# make install


6.mytop 설치

   [root@soma src]# tar -xvzf mytop-1.4.tar.gz
   [root@soma src]# cd mytop-1.4
   [root@soma mytop-1.4]# perl Makefile.PL
   [root@soma mytop-1.4]# make

   [root@soma mytop-1.4]# make install


확인하기

   [root@soma]# mytop -u root -p 123456 -d soma

Arguments 설명

Argument

설명

 -u

  사용자명                                                    ( 기본 : root )

 -p

  패스워드                                                    ( 기본 : none )

 -h

  hostname                                                   ( 기본 : localhost )

 -port

  mysql 포터                                                 ( 기본 : 3306 )

 -s

  refresh 시간                                               ( 기본 : 5초 )

 -d

  Database 선택                                           ( 기본 : test )

 -b

  batch mode                                                ( 기본 : unset )

 -S

  socket                                                       ( 기본 : none )

 -header or -noheader

 header 정보를 출력할 것이냐 아니냐를 결정 ( 기본 : header )

 -color or -nocolor

  출력시 color 지원여부 결정

 -idle or -noidle

  idle thread 출력여부 결정                            ( 기본 : idle )

Option 설명

Option

설명

  d

  특정 Database 만 출력하고 싶을경우

  f

  Thread ID 별로 실행중인 모든 Query를 출력하고 싶을 경우

  h

  접속 host 별로 출력하고 싶을 경우 ( localhost or hostname )

  i

  idle 상태인 리스트를 출력시키지 않을때

  k

  특정 thread 번호를 죽일때

  m

  초당 쿼리수 보기

  p

  일시정지

  q

  mytop 종료

  r

  모든 카운터 정보 초기화

  s

  refresh 시간 설정

  u

  사용자 변경



  1. 초기 mysql root 패스워드 설정 및 비번 변경과 root 비번 잃어 버렸을 경우 변경하는 방법

    Date2008.10.30 ByADMINPLAY Views11290
    Read More
  2. 서버에서 mysql euckr과 utf8 같이 사용하기

    Date2010.05.03 ByADMINPLAY Views12799
    Read More
  3. 리눅스를 이용한 클러스터링 구축법

    Date2009.11.19 ByADMINPLAY Views10754
    Read More
  4. 리눅스 환경에서 mySql JDBC

    Date2009.07.12 ByADMINPLAY Views10356
    Read More
  5. [우분투] mysql, data 디렉토리 변경

    Date2013.09.24 ByADMINPLAY Views15193
    Read More
  6. [데이터베이스] [DBMS-MYSQL] "SHOW PROCESSLIST"시 state 종류 및 설명

    Date2012.01.16 ByADMINPLAY Views15928
    Read More
  7. [MySQL] OPTIMIZE, TRUNCATE, 테이블복구, DB공간제한

    Date2010.05.29 Byl2zeo Views16489
    Read More
  8. [MYSQL] Mysql 테이블 검사하기 & 복구하기

    Date2009.06.17 ByADMINPLAY Views8453
    Read More
  9. [mysql] Manager of pid-file quit without updating fi[실패]

    Date2009.06.29 ByADMINPLAY Views13639
    Read More
  10. [MySQL 5.1.4] /bin/rm: cannot remove `libtoolT': No such file or directory

    Date2012.01.16 ByADMINPLAY Views18415
    Read More
  11. Starting MySQL.Manager of pid-file quit without updating fi[실패]

    Date2010.01.28 ByADMINPLAY Views19866
    Read More
  12. SSL을 이용한 MySQL 연결

    Date2009.03.03 ByADMINPLAY Views10807
    Read More
  13. slow Query 조사

    Date2009.03.17 ByADMINPLAY Views9054
    Read More
  14. skip-name-resolve

    Date2009.05.22 ByADMINPLAY Views9069
    Read More
  15. Redmine database를 복구 하고자 할 때

    Date2010.03.06 Byl2zeo Views15597
    Read More
  16. phpMyAdmin 에서 icon 과 text 중 icon 만 보이게 하기

    Date2013.01.21 Byl2zeo Views11855
    Read More
  17. PHP5와 MySQL5 연동시 한글 인코딩 문제 해결방법 (UTF-8으로의 변환)

    Date2010.03.08 Byl2zeo Views12581
    Read More
  18. mytop 으로 mysql 모니터링하기

    Date2009.06.25 ByADMINPLAY Views8734
    Read More
  19. MySQL의 호스트 블럭킹 & max_connect_errors

    Date2011.03.09 ByADMINPLAY Views17772
    Read More
  20. MySQL에서 Query Cache 사용하기

    Date2011.03.18 ByADMINPLAY Views15860
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234