Xtrabackup数据库备份功能专门备份mysql innodb存储结构的数据库的,下面PHP粉丝网小伙伴就同各位同学介绍一下吧,希望例子能帮助到各位同学.
1、下载
- wget
- http://www.percona.com/redir/downloads/XtraBackup/LATEST/binary/redhat/6/x86_64/percona-xtrabackup-2.2.3-4982.el6.x86_64.rpm
2、安装,代码如下:
rpm -ivh percona-xtrabackup-2.2.3-4982.el6.x86_64.rpm
如果报下面错误的话:
- warning:percona-xtrabackup-2.2.3-4982.el6.x86_64.rpm:HeaderV4DSA/SHA1Signature,keyIDcd2efd2a:NOKEY
- error:Faileddependencies:
- libaio.so.1()(64bit)isneededbypercona-xtrabackup-2.2.3-4982.el6.x86_64
- libaio.so.1(LIBAIO_0.1)(64bit)isneededbypercona-xtrabackup-2.2.3-4982.el6.x86_64
- libaio.so.1(LIBAIO_0.4)(64bit)isneededbypercona-xtrabackup-2.2.3-4982.el6.x86_64
- perl(DBD::mysql)isneededbypercona-xtrabackup-2.2.3-4982.el6.x86_64--phpfensi.com
- perl(Time::HiRes)isneededbypercona-xtrabackup-2.2.3-4982.el6.x86_64
安装以下依赖包,代码如下L
yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL
重新运行,代码如下:
rpm -ivh percona-xtrabackup-2.2.3-4982.el6.x86_64.rpm
即可.