更改 MySQL 密码提示 ERROR 1054 (42S22): Unknown column ‘password‘ in ‘field list‘

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

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

mysql 数据库下已经没有 password 字段,password 字段改成了 authentication_string

使用新字段

update mysql.user set authentication_string=password('abc123!@#') where user='root';

重启计算机

reboot

密码修改成功;

猜你喜欢

转载自blog.csdn.net/u013633921/article/details/107540982