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

我来答
添加附件
收藏
分享
问题补充
4条回答
默认
最新
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
墨值悬赏
增加 -flush-logs -flush-privileges 两个参数后,提示没有权限 ,但是用的root用户,赋予的all权限,为啥呢?

两个横杠啊。
$ 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
墨值悬赏