加入收藏 | 设为首页 | 会员中心 | 我要投稿 大连站长网 (https://www.0411zz.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

怎样进行percona-xtrabackup安置

发布时间:2022-01-14 10:39:55 所属栏目:MySql教程 来源:互联网
导读:这篇文章给大家介绍怎样进行percona-xtrabackup安装,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。 Linux系统环境: Red Hat Enterprise Linux Server release 6.5 (Santiago) MySQL版本:5.7.9 Source distribution 1. Install t
     这篇文章给大家介绍怎样进行percona-xtrabackup安装,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。
 
     Linux系统环境:
 
Red Hat Enterprise Linux Server release 6.5 (Santiago)
 
MySQL版本:5.7.9 Source distribution
 
1. Install the Percona repository
 
[root@ora yum.repos.d]# wget
[root@ora yum.repos.d]# rpm -ivh percona-release-0.1-3.noarch.rpm
warning: percona-release-0.1-3.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...              ########################################### [100%]
   1:percona-release        ########################################### [100%]
2. Testing the repository
 
[root@ora yum.repos.d]# yum list | grep percona-xtrabackup
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
percona-xtrabackup.x86_64          2.3.8-1.el6            percona-release-x86_64
percona-xtrabackup-20.x86_64       2.0.8-587.rhel6        percona-release-x86_64
percona-xtrabackup-20-debuginfo.x86_64
percona-xtrabackup-20-test.x86_64  2.0.8-587.rhel6        percona-release-x86_64
percona-xtrabackup-21.x86_64       2.1.9-746.rhel6        percona-release-x86_64
percona-xtrabackup-21-debuginfo.x86_64
percona-xtrabackup-22.x86_64       2.2.13-1.el6           percona-release-x86_64
percona-xtrabackup-22-debuginfo.x86_64
percona-xtrabackup-24.x86_64       2.4.7-2.el6            percona-release-x86_64
percona-xtrabackup-24-debuginfo.x86_64
percona-xtrabackup-debuginfo.x86_64
percona-xtrabackup-test.x86_64     2.3.8-1.el6            percona-release-x86_64
percona-xtrabackup-test-21.x86_64  2.1.9-746.rhel6        percona-release-x86_64
percona-xtrabackup-test-22.x86_64  2.2.13-1.el6           percona-release-x86_64
percona-xtrabackup-test-24.x86_64  2.4.7-2.el6            percona-release-x86_64
3. Install the packages
 
[root@ora yum.repos.d]# yum install percona-xtrabackup-24
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package percona-xtrabackup-24.x86_64 0:2.4.7-2.el6 will be installed
--> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-24-2.4.7-2.el6.x86_64
--> Finished Dependency Resolution
Error: Package: percona-xtrabackup-24-2.4.7-2.el6.x86_64 (percona-release-x86_64)
           Requires: libev.so.4()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
yum install percona-xtrabackup-21
 
yum install percona-xtrabackup-22
 
执行以上两条命令安装是没有错误提示的
 
percona-xtrabackup-24依赖libev.so.4(),安装对应的包即可解决
 
4. Install the libev-4.15-1.el6.rf.x86_64.rpm
 
[root@ora yum.repos.d]# wget
[root@ora yum.repos.d]# rpm -ivh libev-4.15-1.el6.rf.x86_64.rpm
warning: libev-4.15-1.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing...                ########################################### [100%]
   1:libev                  ########################################### [100%]
[root@ora yum.repos.d]# yum install percona-xtrabackup-24
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package percona-xtrabackup-24.x86_64 0:2.4.7-2.el6 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
=================================================================================================
 Package                     Arch         Version             Repository                    Size
=================================================================================================
Installing:
 percona-xtrabackup-24       x86_64       2.4.7-2.el6         percona-release-x86_64       7.9 M
 
Transaction Summary
=================================================================================================
Install       1 Package(s)
 
Total download size: 7.9 M
Installed size: 31 M
Is this ok [y/N]: y
Downloading Packages:
percona-xtrabackup-24-2.4.7-2.el6.x86_64.rpm                              | 7.9 MB     04:41     
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-3.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-Percona
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : percona-xtrabackup-24-2.4.7-2.el6.x86_64                                      1/1
  Verifying  : percona-xtrabackup-24-2.4.7-2.el6.x86_64                                      1/1
 
Installed:
  percona-xtrabackup-24.x86_64 0:2.4.7-2.el6                                                     
 
Complete!

(编辑:大连站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!