Installing Percona XtraBackup from Percona yum repository

  1. Install the Percona repository

    You can install Percona yum repository by running the following command as a root user or with sudo:

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

    You should see some output such as the following:

    Retrieving http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-release-0.1-6.noarch.rpm
    Preparing... ########################################### [100%]
    1:percona-release ########################################### [100%]

Note

RHEL/Centos 5 doesn’t support installing the packages directly from the remote location so you’ll need to download the package first and install it manually with rpm:

$ wget http://www.percona.com/downloads/percona-release/redhat/0.1-6/\
percona-release-0.1-6.noarch.rpm
$ rpm -ivH percona-release-0.1-6.noarch.rpm
  1. Testing the repository

    Make sure packages are now available from the repository, by executing the following command:

    yum list | grep percona
    

    You should see output similar to the following:

    ...
    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
    ...
  2. Install the packages

    You can now install Percona XtraBackup by running:

    yum install percona-xtrabackup-24
    

Warning

In order to sucessfully install Percona XtraBackup libev package will need to be installed first. libev package can be installed from the EPEL repositories.

Percona yum Testing Repository

Percona offers pre-release builds from our testing repository. To subscribe to the testing repository, you’ll need to enable the testing repository in /etc/yum.repos.d/percona-release.repo. To do so, set both percona-testing-$basearch and percona-testing-noarch to enabled = 1 (Note that there are 3 sections in this file: release, testing and experimental - in this case it is the second section that requires updating). NOTE: You’ll need to install the Percona repository first (ref above) if this hasn’t been done already.

Installing Percona XtraBackup using downloaded rpm packages

Download the packages of the desired series for your architecture from the download page. Following example will download Percona XtraBackup 2.4.4 release package for CentOS 7:

$ wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.4/\
binary/redhat/7/x86_64/percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm

Now you can install Percona XtraBackup by running:

$ yum localinstall percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm

Note

When installing packages manually like this, you’ll need to make sure to resolve all the dependencies and install missing packages yourself.

Uninstalling Percona XtraBackup

To completely uninstall Percona XtraBackup you’ll need to remove all the installed packages.

Remove the packages

yum remove percona-xtrabackup

查看效果:

[root@weifeng04 ~]# xtrabackup --version
xtrabackup: recognized server arguments: --datadir=/var/lib/mysql
xtrabackup version 2.4.12 based on MySQL server 5.7.19 Linux (x86_64) (revision id: 170eb8c)

 

最新文章

  1. php中防止SQL注入的方法
  2. MFC 重载退出(窗口顶上最右边的x按钮)
  3. Ubuntu16.04 安装openjdk-7-jdk
  4. 【python cookbook】【字符串与文本】8.编写多行模式的正则表达式
  5. Facebook
  6. JSON解析总结2
  7. 洛谷 P1359 租用游艇
  8. 201521123057 《Java程序设计》第1周学习总结
  9. Flask-WTF 配置、验证及日志P4
  10. ASP.NET MVC 分页问题
  11. [poj1644]放苹果
  12. Thread之八:interrupt中断
  13. 2018-2019-2 20165311《网络对抗技术》Exp5 MSF基础应用
  14. pygame-KidsCanCode系列jumpy-part16-enemy敌人
  15. MySQL优化小结
  16. pycharm添加版本控制
  17. web项目部署在不同环境中需要修改配置文件的解决方法
  18. 查看.mobileprovision 详细信息
  19. phpmailer SMTP Error: Could not connect to SMTP host. 错误解决
  20. activiti自己定义流程之Spring整合activiti-modeler实例(一):环境搭建

热门文章

  1. 拉普拉斯(Laplace)分布
  2. JAVA 垃圾收集监控
  3. Vlan访问控制ACL
  4. 降压转换器 (Buck)
  5. mOByDiC E90C2600 EOBD/OBDII to RS232 gateway
  6. Spring MVC表单处理
  7. MySQL审计功能
  8. g++ 链接*.a静态库 方法
  9. Known BREAKING CHANGES from NH3.3.3.GA to 4.0.0
  10. 【spring cloud】spring cloud 使用feign调用,1.fallback熔断器不起作用,2.启动报错Caused by: java.lang.ClassNotFoundException: com.netflix.hystrix.contrib.javanica.aop.aspectj.Hystri解决