galera安装之编译安装xtrabackup 2.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/





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值