centos使用yum安装xtrabackup

参见percona官网通过使用yum安装xtrabackup。

https://www.percona.com/doc/percona-xtrabackup/LATEST/installation/yum_repo.html

1、安装percona依赖库:

使用root执行下面的命令

yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm

确保安装成功。

2、测试依赖库是否安装成功:

yum list | grep percona

看到如下内容输出即可确认安装成功:

...
percona-xtrabackup-20.x86_64               2.0.8-587.rhel5             percona-release-x86_64
percona-xtrabackup-20-debuginfo.x86_64     2.0.8-587.rhel5             percona-release-x86_64
percona-xtrabackup-20-test.x86_64          2.0.8-587.rhel5             percona-release-x86_64
percona-xtrabackup-21.x86_64               2.1.9-746.rhel5             percona-release-x86_64
percona-xtrabackup-21-debuginfo.x86_64     2.1.9-746.rhel5             percona-release-x86_64
percona-xtrabackup-22.x86_64               2.2.13-1.el5                percona-release-x86_64
percona-xtrabackup-22-debuginfo.x86_64     2.2.13-1.el5                percona-release-x86_64
percona-xtrabackup-debuginfo.x86_64        2.3.5-1.el5                 percona-release-x86_64
percona-xtrabackup-test.x86_64             2.3.5-1.el5                 percona-release-x86_64
percona-xtrabackup-test-21.x86_64          2.1.9-746.rhel5             percona-release-x86_64
percona-xtrabackup-test-22.x86_64          2.2.13-1.el5                percona-release-x86_64
...

3、安装percona

yum install percona-xtrabackup-24

提示缺少包libev.so.4()(64bit):

错误:Package: percona-xtrabackup-24-2.4.12-1.el6.x86_64 (percona-release-x86_64)
Requires: libev.so.4()(64bit)

安装之。

4、在http://rpmfind.net/linux/rpm2html/search.php上直接搜索该包libev-4.04-2.el6.x86_64.rpm安装之。

[root@MysqL ~]# rpm -ivh libev-4.04-2.el6.x86_64.rpm
warning: libev-4.04-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature,key ID 66534c2b: NOKEY
Preparing...                ########################################### [100%]
   1:libev                  ########################################### [100%]

5、然后在安装xtrabackup包:

[root@MysqL ~]# yum install percona-xtrabackup-24
已加载插件:fastestmirror,refresh-packagekit,security
设置安装进程
Loading mirror speeds from cached hostfile
解决依赖关系
--> 执行事务检查
---> Package percona-xtrabackup-24.x86_64 0:2.4.12-1.el6 will be 安装
--> 处理依赖关系 perl(DBD::MysqL),它被软件包 percona-xtrabackup-24-2.4.12-1.el6.x86_64 需要
--> 执行事务检查
---> Package perl-DBD-MysqL.x86_64 0:4.013-3.el6 will be 安装
--> 处理依赖关系 perl(DBI::Const::GetInfoType),它被软件包 perl-DBD-MysqL-4.013-3.el6.x86_64 需要
--> 处理依赖关系 perl(DBI),它被软件包 perl-DBD-MysqL-4.013-3.el6.x86_64 需要
--> 执行事务检查
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be 安装
--> 完成依赖关系计算

依赖关系解决

===================================================================================================================
 软件包                          架构             版本                      仓库                              大小
===================================================================================================================
正在安装:
 percona-xtrabackup-24           x86_64           2.4.12-1.el6              percona-release-x86_64           8.1 M
为依赖而安装:
 perl-DBD-MysqL                  x86_64           4.013-3.el6               base                             134 k
 perl-DBI                        x86_64           1.609-4.el6               base                             705 k

事务概要
===================================================================================================================
Install       3 Package(s)

总下载量:8.9 M
Installed size: 33 M
确定吗?[y/N]:y
下载软件包:
(1/3): percona-xtrabackup-24-2.4.12-1.el6.x86_64.rpm                                                         | 8.1 MB     00:08     
(2/3): perl-DBD-MysqL-4.013-3.el6.x86_64.rpm                                                                 | 134 kB     00:00     
(3/3): perl-DBI-1.609-4.el6.x86_64.rpm                                                                       | 705 kB     00:00     
------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                984 kB/s | 8.9 MB     00:09     
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature,key ID cd2efd2a: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Percona
Importing GPG key 0xCD2EFD2A:
 Userid : Percona MysqL Development Team <MysqL-dev@percona.com>
 Package: percona-release-0.1-4.noarch (@/percona-release-0.1-4.noarch)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-Percona
确定吗?[y/N]:y
运行 rpm_check_debug 
执行事务测试
事务测试成功
执行事务
Warning: RPMDB altered outside of yum.
  正在安装   : perl-DBI-1.609-4.el6.x86_64                                                                                      1/3 
  正在安装   : perl-DBD-MysqL-4.013-3.el6.x86_64                                                                                2/3 
  正在安装   : percona-xtrabackup-24-2.4.12-1.el6.x86_64                                                                        3/3 
  Verifying  : perl-DBD-MysqL-4.013-3.el6.x86_64                                                                                1/3 
  Verifying  : perl-DBI-1.609-4.el6.x86_64                                                                                      2/3 
  Verifying  : percona-xtrabackup-24-2.4.12-1.el6.x86_64                                                                        3/3 

已安装:
  percona-xtrabackup-24.x86_64 0:2.4.12-1.el6                                                                                       

作为依赖被安装:
  perl-DBD-MysqL.x86_64 0:4.013-3.el6                                 perl-DBI.x86_64 0:1.609-4.el6                                

完毕!
[root@MysqL ~]#

6、安装完成。

[root@MysqL ~]# rpm -ql percona-xtrabackup-24
/usr/bin/innobackupex
/usr/bin/xbcloud
/usr/bin/xbcloud_osenv
/usr/bin/xbcrypt
/usr/bin/xbstream
/usr/bin/xtrabackup
/usr/lib64/xtrabackup/plugin/keyring_file.so
/usr/lib64/xtrabackup/plugin/keyring_vault.so
/usr/share/doc/percona-xtrabackup-24-2.4.12
/usr/share/doc/percona-xtrabackup-24-2.4.12/COPYING
/usr/share/man/man1/innobackupex.1.gz
/usr/share/man/man1/xbcrypt.1.gz
/usr/share/man/man1/xbstream.1.gz
/usr/share/man/man1/xtrabackup.1.gz
[root@MysqL ~]#

相关文章

有时候CentOS工作在无互联网的环境下,需要在离线环境下安装一些组件,这次实现的是模拟在离线环境下安...
首先参照https://www.cnblogs.com/wdw984/p/13330074.html,来进行如何安装Centos和离线下载rpm包。 离...
有两个.NET CORE3.1网站部署在CentOS7上(内网IP是192.168.2.32),现在想实现访问http://192.168.2.32...
1、yum -y install vsftpd 安装vsftpd 2、配置vsftpd的配置文件(/etc/vsftpd/vsftpd.conf)主要修改以...
首先去mysql官网下载mysql的离线rpm安装包(https://downloads.mysql.com/archives/community/) Mysql...
第一步下载erlang环境并安装: wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_...