
# 通过DAS授权或取消授权时报错Your password does not satisfy the current policy requirements
#### 场景描述
在DAS上使用root登录数据库进行**GRANT** 授权或者**REVOKE**取消授权时，报错：Your password does not satisfy the current policy requirements
#### 解决方案
- MySQL 5.7 在没有创建用户的前提下授权，会提示：Your password does not satisfy the current policy requirements
  5.7版本的**GRANT** 语句会在用户不存在的时候自动创建用户，建议在授权命令后面加上**IDENTIFIED BY**，此时用户就被创建成功。
  查询用户是否存在：
  **select \* from mysql.user where user='** *\<username\>* **';**
  授权语句：
  **grant select on mysql.\* to '** *\<username\>* **'@'%' IDENTIFIED BY '** *\<password\>* **';**
  

- MySQL 8.0 在没有创建用户的前提下授权，会提示：You are not allowed to create a user with GRANT
  8.0版本需要先使用**create**创建用户再执行授权。
  
 
