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创建用户再执行授权。

相关文档

网站地图