ERROR 1054 (42S22): Unknown column 'password' in 'field list' Solution

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_43671437/article/details/102778602

Change Password is an error

ERROR 1054 (42S22): Unknown column ‘password’ in 'field list’

Because mysql-5.7 and above has no password field, the password field has been modified to authentication_string field

Solution:

The password modified to authentication_string

update user set authentication_string=password('you new password') where user='root';

Guess you like

Origin blog.csdn.net/weixin_43671437/article/details/102778602