本文主要是介绍MySQL8修改密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
目录
- 一、问题描述
- 二、解决方法
- 1.查看密码策略
- 2.修改密码策略为 LOW
- 3.修改密码长度为 6
一、问题描述
MySQL8 修改密码报错:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
二、解决方法
1.查看密码策略
show variables like 'validate_password%';
mysql> show variables like 'validate_password%';
+--------------------------------------+--------+
| Variable_name | Value |
+--------------------------------------+--------+
| validate_password.check_user_name | ON |
| validate_password.dictionary_file | |
| validate_password.length | 8 |
| validate_password.mixed_case_count | 1 |
| validate_password.number_count | 1 |
| validate_password.policy | MEDIUM |
| validate_password.special_char_count | 1 |
+--------------------------------------+--------+
7 rows in set (0.00 sec)
2.修改密码策略为 LOW
set global validate_password.policy=LOW;
3.修改密码长度为 6
set global validate_password.length=6;
这篇关于MySQL8修改密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!