centos innobackup 安装应用

二进制版本


Xtrabackup下载地址: http://www.percona.com/downloads/XtraBackup/LATEST/binary/


[root@db1 data]# innobackupex --user=root -proot --database=test --defaults-file=/etc/my.cnf /home/

Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/bin/innobackupex line 23.

BEGIN failed--compilation aborted at /usr/bin/innobackupex line

解决方法:

yum install perl-Time-HiRes

报错2:

[root@dbtest bin]# innobackupex --user=root --password=root --defaults-file=/etc/my.cnf --socket=/tmp/mysql.sock  /home/backup_xtra


InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy

and Percona Ireland Ltd 2009-2012.  All Rights Reserved.


This software is published under

the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.


130608 10:22:29  innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_file=/etc/my.cnf;mysql_read_default_group=xtrabackup;mysql_socket=/tmp/mysql.sock' as 'root'  (using password: YES).

ERROR: Failed to connect to MySQL server as DBD::mysql module is not installed at /usr/bin/innobackupex line 1397.


解决方法:下载这个玩意

yum -y install perl-DBD-MySQL.x86_64


root@dbtest bin]# ./innobackupex --defaults-file=/etc/my.cnf --user=root --password=root  --socket=/tmp/mysql.sock  /home/backup


InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy

and Percona Ireland Ltd 2009-2012.  All Rights Reserved.


This software is published under

the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.


130608 10:41:30  innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_file=/etc/my.cnf;mysql_read_default_group=xtrabackup;mysql_socket=/tmp/mysql.sock' as 'root'  (using password: YES).

130608 10:41:30  innobackupex: Connected to MySQL server

IMPORTANT: Please check that the backup run completes successfully.

          At the end of a successful backup run innobackupex

          prints "completed OK!".


innobackupex: Using mysql server version 5.5.22-log


xtrabackup_55: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

innobackupex: fatal error: no 'mysqld' group in MySQL options


解决方法:也下载这个玩意

yum -y install libaio*


发现这个家伙备份咋还不能真正指定数据库啊。。。fuck 指定了数据库却给我直接copy数据目录里的ibdata文件我擦。




你可能感兴趣的:(centos,InnoDB,innobackup)