Install and compile xtrabackup 2.2.11, axtrabackup
---- 1. compile and install percona-compiler-y install cmake gcc-c ++ libaio-devel automake autoconf bzr \ bison libtool ncurses-devel ncurses5-devel zlib-devel libgcrypt-devel crypt * libgcrypt *\ python-sphinx openssl imake libxml2-devel expat-devel ncurses5-devel ncurses-devleNOTE: 2.2.14 python-sphsf-openssl dependency packages are required. --- 2. install the relevant plug-in yum-y install perl-DBIyum-y install perl-DBD-MySQLyum-y install perl-T Ime-HiResyum-y install perl-IO-Socket-SSLwget http://www.percona.com/downloads/percona-toolkit/2.2.14/RPM/percona-toolkit-2.2.13-1.noarch.rpmyum-y install mysql-libs # MySQL-shared-compatrpm-ivh MySQL-shared-compat-5.6.25-1.el6.x86_64.rpm yum-y install perl-TermReadKeyrpm- ivh percona-toolkit-2.2.14-1.noarch.rpm --- 3. install xtrabackupwget http://www.percona.com/downloads/XtraBackup/XtraBackup-2. 2.11/source/tarball/percona-xtrabackup-2.2.11.tar.gzcd/soft/rm-rf/usr/local/xtrabackupmkdir-p/usr/local/xtrabackuptar xvzf percona-xtrabackup-2.2.11.tar.gz mv percona-xtrabackup-2.2.11/usr/local/xtrabackupchown-R mysql: mysql/usr/local/xtrabackupcd/usr/local/xtrabackup/percona-xtrabackup-2.2.11cmake-DBUILD_CONFIG = xtrabackup_release/************* compile and install related parameters cmake. -LH -- View mysql-related parameters supported by cmake Hell> cmake. -L # overviewshell> cmake. -LH # overview with help textshell> cmake. -LAH # all params with help textshell> cmake. # interactive display ******************* make ****************** ** when you re-compile an error that may be encountered by make, the old object file and cache information must be cleared. ext. extlinks (exception: No module named extlinks) make cleanrm-f CMakeCache.txt ******************** make install/****** rm-rf/usr/is required for re-installation/ bin /Innobackupexrm-rf/usr/bin/xtrabackup ************/# vi ++ ~ /. Bash_profileexport PATH =/usr/local/xtrabackup/bin: $ PATH # source ~ /. Bash_profile ---- link command to the/usr/bin directory ln-sf/usr/local/xtrabackup/bin/*/usr/bin/
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.