The password of MySQL was not changed in time when logging in for the first time
When downloading MySQL for the first time, because the password was not changed in time, it was prompted to change the password first.
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
When changing the password according to the requirements, the following error occurs when executing SQL command:
mysql> alter user 'root'@'localhost' identified by '123456';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
The reason is that the password does not conform to the password rules, which is too simple.
Therefore, it is necessary to modify the password policy in time
set global validate_password_policy=0
set global validate_password_length=1;
validate_ password_ polic =
0 or low verify length only
1 or medium verify length, number, case and special characters
2 or strong verify length, number, case, special character and dictionary file
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
Query OK, 0 rows affected (0.00 sec)
Read More:
- MYSQL:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- MySQL 8 — error in setting simple password error 1819 (HY000): your password does not satisfy the current policy requirements
- Linux (error 1819 (HY000): your password does not satisfy the current policy requirements)
- MySQL: if the remote connection using navicatip fails, prompt “is not allowed to connect to this MySQL server”
- ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- MySQL password setting error message: error 1054 (42s22): unknown column ‘password’ in ‘field list’
- Error 1064 in MySQL password change
- MySQL error — multiple methods of failed to find valid data directory and MySQL setting password appear
- MySQL error 1054 (42s22) unknown column ‘password’ in ‘field list’
- Linux-mysql8.0 password reset problem – error 1396 (HY000): Operation alter user failed for ‘root’ @’localhost ‘
- MySQL — initialize failed to generate temporary password in error log after initialization
- When calling time module – time / datetime in wxPython, an error is reported. Valueerror: unknown locale: zh cn
- MySQL ERROR 1054 (42S22): Unknown column’password’ in’field list’ error
- MySQL forgot the root password
- [antdv: DatePicker] `value` provides invalidate moment time. If you want set empty value, use `null`
- MySQL startup problem (ERROR 1045 (28000): Access denied for user’ODBC’@’localhost’ (using password: NO))
- How to bypass screen time password with itolab unlockgo for Mac
- Modify the password of mysql8 on Windows
- Completely solve install_ FAILED_ UPDATE_ Incompatible installation error, the installation package is not consistent with the previous installation package signature on the device
- Set the default time to the current value in MySQL