程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> MySQL綜合教程 >> galera安裝之編譯安裝xtrabackup2.2.11

galera安裝之編譯安裝xtrabackup2.2.11

編輯:MySQL綜合教程

galera安裝之編譯安裝xtrabackup2.2.11


----1.編譯安裝percona-xtrabackup


yum -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-devle



NOTE:2.2.14 需要python-sphinx openssl兩個依賴包.  

---2.安裝相關插件

yum -y install perl-DBI
yum -y install perl-DBD-MySQL
yum -y install  perl-Time-HiRes
yum -y install perl-IO-Socket-SSL




wget  http://www.percona.com/downloads/percona-toolkit/2.2.14/RPM/percona-toolkit-2.2.13-1.noarch.rpm


yum -y install mysql-libs

#對應版本的MySQL-shared-compat
rpm -ivh MySQL-shared-compat-5.6.25-1.el6.x86_64.rpm 


yum -y install perl-TermReadKey

rpm -ivh percona-toolkit-2.2.14-1.noarch.rpm 

---3.安裝xtrabackup

wget http://www.percona.com/downloads/XtraBackup/XtraBackup-2.2.11/source/tarball/percona-xtrabackup-2.2.11.tar.gz

cd /soft/

rm -rf /usr/local/xtrabackup
mkdir -p /usr/local/xtrabackup

tar xvzf percona-xtrabackup-2.2.11.tar.gz 


mv percona-xtrabackup-2.2.11 /usr/local/xtrabackup

chown -R  mysql:mysql /usr/local/xtrabackup

cd /usr/local/xtrabackup/percona-xtrabackup-2.2.11


cmake -DBUILD_CONFIG=xtrabackup_release 



/**************編譯安裝相關參數




cmake . -LH  --查看cmake支持的mysql相關參數

shell> cmake . -L   # overview
shell> cmake . -LH  # overview with help text
shell> cmake . -LAH # all params with help text
shell> cmake .     # interactive display


******************

make 



********************make可能遇到的錯誤


重新編譯時,需要清除舊的對象文件和緩存信息

Could not import extension sphinx.ext.extlinks (exception: No module named extlinks)

make clean

rm -f  CMakeCache.txt

******************



make install

/*****重新安裝需要
rm -rf /usr/bin/innobackupex
rm -rf /usr/bin/xtrabackup

***********/




#vi + ~/.bash_profile

export PATH=/usr/local/xtrabackup/bin:$PATH

#source ~/.bash_profile



----鏈接命令到/usr/bin目錄

ln -sf   /usr/local/xtrabackup/bin/*  /usr/bin/

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved