1)安装 perl-ExtUtils-MakeMaker, mysql-libs
yum install *MakeMaker* mysql-libs perl-TermReadKey
2)解压 percona-toolkit-2.2.6.tar.gz
tar xzvf percona-toolkit-2.2.6.tar.gz
3)进入解压路径percona-toolkit-2.2.6
perl Makefile.PL
make
make test
make install
编译安装完成
4)进入/usr/local/bin, ls pt-* 显示结果如下:
pt-agent
pt-align
pt-archiver
pt-config-diff
pt-deadlock-logger
pt-diskstats
pt-duplicate-key-checker
pt-fifo-split
pt-find
pt-fingerprint
pt-fk-error-logger
pt-heartbeat
pt-index-usage
pt-ioprofile
pt-kill
pt-mext
pt-mysql-summary
pt-online-schema-change
pt-pmp
pt-query-digest
pt-show-grants
pt-sift
pt-slave-delay
pt-slave-find
pt-slave-restart
pt-stalk
pt-summary
pt-table-checksum
pt-table-sync
pt-table-usage
pt-upgrade
pt-variable-advisor
pt-visual-explain
表明安装成功!
yum install *MakeMaker* mysql-libs perl-TermReadKey
2)解压 percona-toolkit-2.2.6.tar.gz
tar xzvf percona-toolkit-2.2.6.tar.gz
3)进入解压路径percona-toolkit-2.2.6
perl Makefile.PL
make
make test
make install
编译安装完成
4)进入/usr/local/bin, ls pt-* 显示结果如下:
pt-agent
pt-align
pt-archiver
pt-config-diff
pt-deadlock-logger
pt-diskstats
pt-duplicate-key-checker
pt-fifo-split
pt-find
pt-fingerprint
pt-fk-error-logger
pt-heartbeat
pt-index-usage
pt-ioprofile
pt-kill
pt-mext
pt-mysql-summary
pt-online-schema-change
pt-pmp
pt-query-digest
pt-show-grants
pt-sift
pt-slave-delay
pt-slave-find
pt-slave-restart
pt-stalk
pt-summary
pt-table-checksum
pt-table-sync
pt-table-usage
pt-upgrade
pt-variable-advisor
pt-visual-explain
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9606353/viewspace-1613711/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9606353/viewspace-1613711/