码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS 6.4下Percona Xtrabackup安装部署错误处理

时间:2015-08-06 18:40:06      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:xtrabackup   percona xtrabackup   innobackupex: error   

在centos 6.4 安装部署Percona Xtrabackup,执行全备份脚本,备份不成功,查看日志,报错如下:


 11:15:51  innobackupex: Connecting to MySQL server with DSN ‘dbi:mysql:;mysql_read_default_file=/etc/my.cnf;mysql_read_default_group=xtrabackup;mysql_socket=/data/lib/mysql/mysql.sock‘ as ‘dump‘  (using password: YES).

innobackupex: got a fatal error with the following stacktrace: at /usr/bin/innobackupex line 2999

        main::mysql_connect(‘abort_on_error‘, 1) called at /usr/bin/innobackupex line 1539

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


日志显示安装perl-DBD有问题

解决办法:卸载下列软件

rpm -e percona-xtrabackup-2.2.9-5067.el6.x86_64

rpm -e perl-DBI-1.52-2.el5.x86_64 --nodeps

rpm -e perl-DBD-MySQL-4.013-3.el6.x86_64 --nodeps

重新安装软件

rpm -ivh perl-DBI-1.609-4.el6.x86_64.rpm

rpm -ivh perl-DBD-MySQL-4.013-3.el6.x86_64.rpm

rpm -ivh percona-xtrabackup-2.2.9-5067.el6.x86_64.rpm


重新执行全备份脚本,备份成功,查看日志,无报错信息,问题



本文出自 “小熊笨笨” 博客,请务必保留此出处http://ccmm8488.blog.51cto.com/2254226/1682319

CentOS 6.4下Percona Xtrabackup安装部署错误处理

标签:xtrabackup   percona xtrabackup   innobackupex: error   

原文地址:http://ccmm8488.blog.51cto.com/2254226/1682319

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!