温馨提示×

温馨提示×

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

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

怎么解决mysql中的innobackupex: Error: no报错问题

发布时间:2021-11-19 11:38:30 来源:亿速云 阅读:235 作者:iii 栏目:MySQL数据库

本篇内容主要讲解“怎么解决mysql中的innobackupex: Error: no报错问题”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么解决mysql中的innobackupex: Error: no报错问题”吧!

环境介绍:
MySQL5.6.19
RedHat 6.3 _x64
异机做MySQL innobackup恢复的时候出错
 [root@newbidb bin]# ./innobackupex --user=root --password=root1 --defaults-file=/etc/my.cnf --copy-back /u02/backup/
报错信息中出现:
IMPORTANT: Please check that the copy-back run completes successfully. 
           At the end of a successful copy-back run innobackupex  
           prints "completed OK!". 
 
sh: autodetect: command not found 
innobackupex: Error: no 'mysqld' group in MySQL options at ./innobackupex line 4397

解决方法:
1、确定系统中是否已经安装了xtrabackup包,最好版本对应MySQL的版本。
 [root@newbidb bin]# rpm -ivh percona-xtrabackup-2.2.3-4982.el6.x86_64.rpm
这个在官网有下载,http://www.percona.com/downloads/XtraBackup/

如果出现下面错误:
检查是否--defaults-file=/etc/my.cnf 参数,同时检查my.cnf 里面是否正确。

innobackupex: fatal error: no 'mysqld' group in MySQL options

innobackupex: fatal error: OR no 'datadir' option in group 'mysqld' in MySQL options

到此,相信大家对“怎么解决mysql中的innobackupex: Error: no报错问题”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

向AI问一下细节

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

AI