×

MySQL5.7利用mysqldump备份数据库时出现Access denied错误问题

hqy hqy 发表于2025-02-08 14:31:44 浏览19 评论0

抢沙发发表评论

如果数据库比较小,我们可以直接用phpmyadmin备份数据库,但是如果数据库比较大,最好使用mysqldump 命令备份更多的数据库,但是备份 mysql5.7 版本 5.7 以上的数据库时会出现错误。

错误显示如下两种

1、mysqldump: [Warning] Using a password on the command line interface can be insecure.

这个错误问题是因为从 mysql5.7 开始就不能在命令代码中留密码了,这样才能保证信息的安全。当然,留下来也没关系,不影响进度。

2、mysqldump: Error: ‘Access denied; you need (at least one of) the PROCESS privilege(s) for this operation’ when trying to dump tablespaces

这个错误实际上可以忽略。如果觉得难看,就在 mysqldump 的末尾加上"--no-tablespaces"。

mysqldump -uitbulu -pitbuluom idcxen > itbulu.sql --no-tablespaces


打赏

本文链接:https://www.kinber.cn/post/4772.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

 您阅读本篇文章共花了: 

群贤毕至

访客