首页 > 代码库 > 最新XtraBackup安装

最新XtraBackup安装

由于之前服务器安装的xtrabackup比较老的版本,不支持mysql 5.7的热备,需要升级下版本或新服务器部署2.4.版本。这里我们官网https://www.percona.com/downloads/XtraBackup/  下载最新版

安装方法:

Ubuntu环境下安装 :

1,单独安装deb包:

1,下载: wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.4/binary/debian/jessie/x86_64/percona-xtrabackup-24_2.4.4-1.jessie_amd64.deb

2,安装

$ sudo dpkg -i percona-xtrabackup-24_2.4.4-1.jessie_amd64.deb

注意:

当这样手动安装软件包时,您需要确保解决所有的依赖关系并自己安装缺少的软件包。

2,通过仓库安装

What’s in each DEB package?

The percona-xtrabackup-24 package contains the latest Percona XtraBackup GA binaries and associated files.

The percona-xtrabackup-dbg-24 package contains the debug symbols for binaries in percona-xtrabackup-24.

The percona-xtrabackup-test-24 package contains the test suite for Percona XtraBackup.

The percona-xtrabackup-2x package contains the older version of the Percona XtraBackup.

Installing Percona XtraBackup from Percona apt repository

  1. Fetch the repository packages from Percona web:

$ wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb

  1. Install the downloaded package with dpkg. To do that, run the following commands as root or with sudo:

$ sudo dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb

Once you install this package the Percona repositories should be added. You can check the repository setup in the/etc/apt/sources.list.d/percona-release.list file.

  1. Remember to update the local cache:

$ sudo apt-get update

  1. After that you can install the package:

$ sudo apt-get install percona-xtrabackup-24

 Remove Percona XtraBackup

sudo apt-get remove percona-xtrabackup-24


CentOS下安装

1,添加源

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            

3,安装

yum install percona-xtrabackup-24

为了成功安装Percona XtraBackup libev包将需要先安装。 可以从EPEL存储库安装libev软件包。




最新XtraBackup安装