percona-xtrabackup安装

二进制包安装(推荐安装方式,不用安装依赖包,非常方便):
1、下载安二进制包:
2、解压并创建软连接:
     # tar zxvf percona-xtrabackup-2.4.7-Linux-x86_64.tar.gz
      # mv percona-xtrabackup-2.4.7-Linux-x86_64 /usr/local/xtrabackup
      # ln -s /usr/local/xtrabackup/bin/* /usr/bin/
3、查看版本:
      # xtrabackup --version
      xtrabackup version 2.4.7 based on MySQL server 5.7.13 Linux (x86_64) (revision id: 6f7a799)
 
源码安装:
1、安装依赖包:
     yum install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bison libtool ncurses-devel
                    libgcrypt-devel libev-devel libcurl-devel vim-common
     libev-devel 包yum安装不上时,可手动RPM包安装
     rpm -ivh glibc-2.12-1.166.el6.x86_64.rpm
     rpm -ivh libev-4.03-3.el6.x86_64.rpm libev-devel-4.03-3.el6.x86_64.rpm
2、解压源码包:
     tar -zxvf percona-xtrabackup-2.3.3.tar.gz
     cd percona-xtrabackup-2.3.3
3、编译安装:
     cmake -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF && make -j4
     make install 
4、添加到基本命令:
     cp /usr/local/xtrabackup/bin/innobackupex /usr/bin
     cp /usr/local/xtrabackup/bin/xtrabackup /usr/bin
yum源安装:
1、安装Percona的库:
2、测试Percona库:
     yum list|grep percona
3、安装包:
     yum install percona-xtrabackup

posted on 2017-05-08 15:49  lzfj  阅读(5247)  评论(0编辑  收藏  举报

导航