暂无图片
mysqldump 权限问题
我来答
分享
地平线
2022-02-17
mysqldump 权限问题

增加  -flush-logs -flush-privileges 两个参数后,提示没有权限 ,但是用的root用户,赋予的all权限,为啥呢?



我来答
添加附件
收藏
分享
问题补充
4条回答
默认
最新
严少安
暂无图片

两个横杠啊。

$ mysqldump verbose --help | grep flush -F, --flush-logs Flush logs file in server before starting dump. Note that flushed for each database dumped. The exception is when the logs will be flushed only once, corresponding to the and the log flush to happen at the same exact moment you --flush-logs. --flush-privileges Emit a FLUSH PRIVILEGES statement after dumping the mysql
暂无图片 评论
暂无图片 有用 0
暂无图片
薛晓刚

看上去不是权限,是密码不对。

暂无图片 评论
暂无图片 有用 0
地平线

我把这2个参数去掉,之后是可以备份的,root的密码是正确的啊

暂无图片 评论
暂无图片 有用 0
地平线

对的,是2个横杠,哎竟然少了一个 -       ^..^   ! !

暂无图片 评论
暂无图片 有用 0
严少安
2022-02-17
^.^
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏