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文件我擦。




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章