关闭

galera安装之编译安装xtrabackup 2.2.11

标签: galera
1493人阅读 评论(0) 收藏 举报
分类:
----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

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1319935次
    • 积分:15008
    • 等级:
    • 排名:第798名
    • 原创:249篇
    • 转载:1篇
    • 译文:0篇
    • 评论:1条
    博客专栏