V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
woi911
V2EX  ›  MySQL

XtraBackup 可以恢复数据库,但备份报错。

  •  
  •   woi911 · 2015-08-13 08:07:27 +08:00 · 2360 次点击
    这是一个创建于 3189 天前的主题,其中的信息可能已经有所发展或是发生改变。

    都是采用rpm 安装的。
    yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL

    centos 6.8 x32 可以正常还原和备份
    rpm -ivh percona-xtrabackup-2.2.12-1.el6.i686.rpm

    innobackupex --database="x" --user=root --password=woi911 --stream=tar ./ | gzip - > /backup/sql-backuped-date +%F__%H-%M.tar.gz

    centos 6.8 x64 可以正常还原,但备份报错。
    rpm -ivh percona-xtrabackup-2.2.12-1.el6.x86_64.rpm

    [code]
    innobackupex --database="x" --user=root --password=woi911 --stream=tar ./ | gzip - > /backup/sql-backuped-date +%F__%H-%M.tar.gz

    InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
    and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved.

    This software is published under
    the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

    Get the latest version of Percona XtraBackup, documentation, and help resources:
    http://www.percona.com/xb/p

    150813 08:02:15 innobackupex: Executing a version check against the server...
    150813 08:02:15 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup' as 'root' (using password: YES).
    innobackupex: got a fatal error with the following stacktrace: at /usr/bin/innobackupex line 3006
    main::mysql_connect('abort_on_error', 1) called at /usr/bin/innobackupex line 1551
    innobackupex: Error: Failed to connect to MySQL server as DBD::mysql module is not installed at /usr/bin/innobackupex line 3006.
    150813 08:02:15 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup' as 'root' (using password: YES).
    innobackupex: got a fatal error with the following stacktrace: at /usr/bin/innobackupex line 3006
    main::mysql_connect('abort_on_error', 1) called at /usr/bin/innobackupex line 1570
    innobackupex: Error: Failed to connect to MySQL server as DBD::mysql module is not installed at /usr/bin/innobackupex line 3006.
    [/code]

    找了很多资料,percona 官网也看了,还是没找到解决方法。

    1 条回复    2015-08-14 14:34:21 +08:00
    julyclyde
        1
    julyclyde  
       2015-08-14 14:34:21 +08:00
    DBD::mysql module is not installed
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2629 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:46 · PVG 23:46 · LAX 08:46 · JFK 11:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.