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

如果数据库比较小,我们可以直接用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.itbulu.com/mysqldump-access-denied.html

上一篇 2024年9月14日 09:40
下一篇 2024年9月16日 09:52