galera安裝之編譯安裝xtrabackup 2.2.11,galeraxtrabackup
----1.編譯安裝percona-xtrabackupyum -y install cmake gcc gcc-c++ libaio 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-sphinx openssl兩個依賴包. ---2.安裝相關外掛程式yum -y install perl-DBIyum -y install perl-DBD-MySQLyum -y install perl-Time-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.安裝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 /**************編譯安裝相關參數cmake . -LH --查看cmake支援的mysql相關參數shell> cmake . -L # overviewshell> cmake . -LH # overview with help textshell> cmake . -LAH # all params with help textshell> cmake . # interactive display******************make ********************make可能遇到的錯誤重新編譯時間,需要清除舊的對象檔案和緩衝資訊Could not import extension sphinx.ext.extlinks (exception: No module named extlinks)make cleanrm -f CMakeCache.txt******************make install/*****重新安裝需要rm -rf /usr/bin/innobackupexrm -rf /usr/bin/xtrabackup***********/#vi + ~/.bash_profileexport PATH=/usr/local/xtrabackup/bin:$PATH#source ~/.bash_profile----連結命令到/usr/bin目錄ln -sf /usr/local/xtrabackup/bin/* /usr/bin/
著作權聲明:本文為博主原創文章,未經博主允許不得轉載。