MySQL must know P203 to change the password
mysql> SET password for ben=password('123456');
Error will be reported during operation
ERROR 1064 (42000): You have an error inyour SQL syntax; check the manual that
corresponds to your MySQL server versionfor the right syntax to use near ‘passw
ord(‘123456′)’ at line 1
The reason is that after MySQL 5.7.6, the password property has been cancelled (select password is used)
(the “123” experiment informs that an error is reported), and the statement to modify the user’s password has changed
Correct statement:
mysql> alter user ben identified by'123456';
Query OK, 0 rows affected (0.15 sec)
reference material: https://www.zhihu.com/question/30481083
(maybe there are other solutions, just share the mistakes in learning and my solutions. If there are mistakes in the above statements, please criticize and correct them. Thank you.)
Read More:
- MySQL password setting error message: error 1054 (42s22): unknown column ‘password’ in ‘field list’
- MySQL 8 — error in setting simple password error 1819 (HY000): your password does not satisfy the current policy requirements
- Error (1820) if the password is not changed in time after MySQL installation
- MySQL error 1054 (42s22) unknown column ‘password’ in ‘field list’
- MySQL error — multiple methods of failed to find valid data directory and MySQL setting password appear
- MySQL — initialize failed to generate temporary password in error log after initialization
- ERROR: You must wait longer to change your password passwd: Authentication token manipulation error
- Modify the password of mysql8 on Windows
- MySQL forgot the root password
- Linux-mysql8.0 password reset problem – error 1396 (HY000): Operation alter user failed for ‘root’ @’localhost ‘
- MySQL startup problem (ERROR 1045 (28000): Access denied for user’ODBC’@’localhost’ (using password: NO))
- MySQL ERROR 1054 (42S22): Unknown column’password’ in’field list’ error
- MYSQL:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- Error loading password’s fault file (MySQL for Excel)
- Change the path in the user directory in Chinese Ubuntu to English
- Unknown column ‘Password‘ in ‘field list‘
- gerrit error: missing Change-Id in commit message footer
- How to Change Local Path in TFS
- [Solved] ERROR: commit 60acc70: missing Change-Id in message footer
- Error in installing MySQL devel for CentOS MySQL