When I’m ready to authorize users:
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
In the following situation o (╥﹏╥) O:
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> show variables liek "%validate%"
When I still can’t resist my enthusiasm of learning and struggling, After a while, we found the key to the problem
The original reason is the default security level of MySQL
Next, let’s look at the default security level of MySQL
mysql> show variables like "%validate%";
The length of the original MySQL password is 8 bits, and the password principle is medium
We found this problem, and we started to solve it
(1) In ordinary learning and training, we can set its length to 4 digits
mysql> set global validate_password_length=4;
(2) Set its security policy as: low
mysql> set global validate_password_policy=0;
Ha ha! Next, we can check the password security information of MySQL
mysql> show variables like "%validate%";
Now we can reauthorize~
mysql> grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
Query OK, 0 rows affected, 1 warning (0.03 sec)
I hope the above methods are useful to you, there is no bug problem in life.
Similar Posts:
- ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- [Solved] MYSQL8.0 Error: the user specified as a definer (‘root’@’%’) does not exist
- [Solved] MYSQL8.0.11-1 password modification error: ERROR 1819 (HY000)
- ERROR 1044 (42000): Access denied for user ‘root’@’localhost’
- mysql 1449 The user specified as a definer does not exist
- [Solved] MYSQL Remote Connect Error: ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- MYSQL: You must reset your password using ALTER USER statement before executing this statement.[How to Solve]
- mysql ERROR 1044 (42000): Access denied for user ‘
- MySQL Connect Error: Authentication plugin ‘caching_sha2_password’ cannot be loaded
- Mysqldump backup problems got error: 1045, error 1045 (28000), got error: 1449