mysql innobackupex 的一则错误该怎么解决

发布时间:2021-10-25 16:23:14 作者:柒染
来源:亿速云 阅读:119

这期内容当中小编将会给大家带来有关mysql innobackupex 的一则错误该怎么解决,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。

-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。

上述就是小编为大家分享的mysql innobackupex 的一则错误该怎么解决了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. MySQL5.7热备份-xtrabackup
  2. mysql怎么进行备份

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

innobackupex mysql

上一篇:怎么在webserver中新建站点发布网站并通过域名进行访问

下一篇:如何用C语言实现bmp图像对比度扩展

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》