首页 > 系统 > Linux > 正文

linux中mysql数据库备份工具Xtrabackup的安装方法分享

2024-08-27 23:55:38
字体:
来源:转载
供稿:网友
  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: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
  error: Failed dependencies:
          libaio.so.1()(64bit) is needed by percona-xtrabackup-2.2.3-4982.el6.x86_64
          libaio.so.1(LIBAIO_0.1)(64bit) is needed by percona-xtrabackup-2.2.3-4982.el6.x86_64
          libaio.so.1(LIBAIO_0.4)(64bit) is needed by percona-xtrabackup-2.2.3-4982.el6.x86_64
          perl(DBD::mysql) is needed by percona-xtrabackup-2.2.3-4982.el6.x86_64  --phpfensi.com
          perl(Time::HiRes) is needed by percona-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
 
  即可.
 
 

(编辑:武林网)

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表