MySQL 5.7 报错 ERROR 1054 (42S22): Unknown column 'password' in 'field list' 的解决办法

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

MySQL 5.7 报错 ERROR 1054 (42S22): Unknown column 'password' in 'field list' 的解决办法_第1张图片

MySQL 5.7 之前的版本修改密码使用的语句是

UPDATE user SET Password=PASSWORD('yourpassword') where USER='root';

5.7 之后的版本应该使用

update mysql.user set authentication_string=password('yourpassword') where user='root';

或者是

UPDATE user SET authentication_string=PASSWORD('yourpassword') where USER='root';

进行修改


MySQL5.7更改密码时出现ERROR 1054 (42S22): Unknown column ‘password’ in ‘field list’

http://blog.csdn.net/u010603691/article/details/50379282


你可能感兴趣的:(MySQL)