j9九游会登录/
云数据库 rds_云数据库 rds for mysql/
/
/
通过das授权或取消授权时报错your password does not satisfy the current policy requirements
更新时间:2025-04-23 gmt 08:00
通过das授权或取消授权时报错your password does not satisfy the current policy requirements-j9九游会登录
场景描述
在das上使用root登录数据库进行grant授权或者revoke取消授权时,报错:your password does not satisfy the current policy requirements
j9九游会登录的解决方案
- mysql 5.7
在没有创建用户的前提下授权,会提示:your password does not satisfy the current policy requirements
5.7版本的grant语句会在用户不存在的时候自动创建用户,建议在授权命令后面加上identified by,此时用户就被创建成功。
查询用户是否存在:
select * from mysql.user where user='
'; 授权语句:
grant select on mysql.* to '
'@'%' identified by ' ';
- mysql 8.0
在没有创建用户的前提下授权,会提示:you are not allowed to create a user with grant
8.0版本需要先create创建用户再执行授权。
相关文档
意见反馈
文档内容是否对您有帮助?
提交成功!非常感谢您的反馈,我们会继续努力做到更好!
您可在查看反馈及问题处理状态。
系统繁忙,请稍后重试
如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨