ITPub博客

首页 > 数据库 > MySQL > mysql innobackupex 的一则错误

mysql innobackupex 的一则错误

原创 MySQL 作者:e71hao 时间:2016-08-16 21:03:10 0 删除 编辑
-bash-3.2$ ./innobackupex --version-check /usr/mysql/xtraback/xtrabackup03
InnoDB Backup Utility v1.5.1-xtrabackup; 
150930 17:16:26  innobackupex: Executing a version check against the server...
150930 17:16:26  innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup' (using password: NO).
innobackupex: got a fatal error with the following stacktrace: at ./innobackupex line 3006
        main::mysql_connect('abort_on_error', 1) called at ./innobackupex line 1551
innobackupex: Error: Failed to connect to MySQL server as DBD::mysql module is not installed at ./innobackupex line 3006.
150930 17:16:26  innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup' (using password: NO).
innobackupex: got a fatal error with the following stacktrace: at ./innobackupex line 3006
        main::mysql_connect('abort_on_error', 1) called at ./innobackupex line 1570
innobackupex: Error: Failed to connect to MySQL server as DBD::mysql module is not installed at ./innobackupex line 3006.

报这样一个错误。这个错误原因是innobackupex是用perl语言写的,perl要通过perl DBI模块和DBD-mysql模块调用mysql数据库来执行。
所以,需要安装包perl-DBD-MySQL。安装这个包,会遇到错误:
yum install perl-DBD-MySQL。采用这个命令安装会出现如下错误:
Transaction Check Error:
  file /etc/my.cnf from install of mysql-5.0.77-4.el5_5.4.i386 conflicts with file from package MySQL-server-5.6.25-1.linux_glibc2.5.i386
原因是:perl-DBD-MySQL对应了5.0版本的mysql,而你安装的5.6的版本mysql。解决办法是手动安装DBD。
请参考我的文章 http://blog.itpub.net/30393770/viewspace-1813513/  。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30393770/viewspace-2123583/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2015-08-05

  • 博文量
    133
  • 访问量
    235558