percona-toolkit 工具的安装

今天下午,趁工作不忙之际,研究了下percona-toolkit 这个工具,从安装到使用遇到了些问题,特此记下。

 

1. Downlaod the percona-toolkit rpm package from https://www.percona.com/software/database-tools/percona-toolkit

percona-toolkit 工具的安装2. Select the version and the platform for the rpm package.

percona-toolkit 工具的安装

3. Click the name of rpm to downlaod.

4. Upload the rpm to your Linux server use scp tool.

5. After you upload completed, To install the rpm with rpm -ivh percona-toolkit-3.2.0-1.el7.x86_64.rpm.

6. if you meet the following error message, you need install releated package.

percona-toolkit 工具的安装

7. install the releated package with the following command. (please make sure your yum repo is worked)

yum install perl-IO perl-Digest perl perl-devel perl-Time-HiRes perl-DBI perl-DBD-MySQL perl-IO-Socket-SSL perl-TermReadKey perl-Digest-MD5

percona-toolkit 工具的安装

8. install the percona-toolkit with rpm -ivh percona-toolkit-3.2.0-1.el7.x86_64.rpm again

percona-toolkit 工具的安装

9. After install finished, check the percona-toolkit.

percona-toolkit 工具的安装

 

========================================================End=====================================

enjoy happy time