需要用percona-xtrabackup备份就要装这个,貌似现在这个改成了cmake安装,略麻烦.
为什么挑2.3.4版本呢,因为听说2.3.3不备份死锁了.
功能需求,使用innobackupex和xtrabackup
首先安装依赖包:
yum -y install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr bison libtool zlib-devel libgcrypt-devel libcurl-devel crypt* libgcrypt* python-sphinx openssl imake libxml2-devel expat-devel ncurses5-devel ncurses-devle vim-common libgpg-error-devel libidn-devel perl-DBI perl-DBD-MySQL perl-Time-HiRes perl-IO-Socket-SSL
然后有个包要专门编译安装的
wget "http://dist.schmorp.de/libev/libev-4.22.tar.gz"
然后是很常态的安装方式
tar xvzf libev-4.22.tar.gz
./configure
make
make install
然后就可以开始进入主题了
安装方式是cmake的,
tar xf percona-xtrabackup-2.3.4.tar.gz
cmake -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF
make
make install
经过漫长等待,终于装完,稍等,想要用还要最完最后这一部
cp -ar /usr/local/xtrabackup/bin/innobackupex /usr/bin/
cp -ar /usr/local/xtrabackup/bin/xtrabackup /usr/bin/
好了,看看我们的劳动成果
# xtrabackup --version
xtrabackup version 2.3.4 based on MySQL server 5.6.24 Linux (x86_64) (revision id: e80c779)
可以用了
本文出自 “ping_note” 博客,请务必保留此出处http://arthur376.blog.51cto.com/2918801/1772177
原文地址:http://arthur376.blog.51cto.com/2918801/1772177