Percona Toolkit 是一个相当好用的mysql管理工具。这里记录下最简单的安装方法。比源码安装要方便多了。
wget https://www.percona.com/downloads/percona-toolkit/2.2.17/RPM/percona-toolkit-2.2.17-1.noarch.rpm yum install percona-toolkit-2.2.17-1.noarch.rpm
这样就安装好了。够简单了吧
如果你习惯用rpm包来安装的话,可能要手动解决依赖关系
rpm -ivh percona-toolkit-2.2.17-1.noarch.rpm
error: Failed dependencies: perl(Time::HiRes) is needed by percona-toolkit-2.2.14-1.noarch perl(IO::Socket::SSL) is needed by percona-toolkit-2.2.14-1.noarch perl(Term::ReadKey) is needed by percona-toolkit-2.2.14-1.noarch perl(DBD::mysql) >= 1.0 is needed by percona-toolkit-2.2.17-1.noarch
那么需要以下处理 yum list |grep Time |HiRes perl-Time-HiRes.x86_64 yum install perl-Time-HiRes.x86_64 yum list |grep Socket |grep SSL perl-IO-Socket-SSL.noarch yum install perl-IO-Socket-SSL.noarch yum list |grep Term |grep ReadKey perl-TermReadKey.x86_64 yum install perl-TermReadKey.x86_64 yum list |grep DBD perl-DBD-MySQL.x86_64 4.013-3.el6 @base perl-DBD-SQLite.x86_64 1.27-3.el6 @anaconda-CentOS-201508042137.x86_64/6.7 perl-DBD-AnyData.noarch 0.09-1.el5.rf rpmforge perl-DBD-CSV.noarch 0.22-1.2.el5.rf rpmforge perl-DBD-Chart.noarch 0.82-1.el5.rf rpmforge perl-DBD-File.noarch 0.34-1.2.el5.rf rpmforge perl-DBD-LDAP.noarch 0.20-1.el5.rf rpmforge perl-DBD-Mock.noarch 1.39-1.el5.rf rpmforge perl-DBD-Multi.noarch 0.14-1.el5.rf rpmforge perl-DBD-ODBC.x86_64 1.23-1.el5.rf rpmforge perl-DBD-Pg.x86_64 2.15.1-4.el6_3 base perl-DBD-PgLite.noarch 0.11-1.el5.rf rpmforge perl-DBD-PgPP.noarch 0.08-1.el5.rf rpmforge perl-DBD-SQLite2.x86_64 0.33-1.el5.rf rpmforge perl-DBD-Sybase.x86_64 1.10-1.el5.rf rpmforge perl-DBD-XBase.noarch 0.241-1.2.el5.rf rpmforge perl-DBIx-AnyDBD.noarch 2.01-1.2.el5.rf rpmforge yum install perl-DBD-MySQL.x86_6
我还是比较喜欢用yum自动解决依赖
时间: 2024-10-26 10:50:36