Unknown column ‘password‘ in ‘field list’

2022-07-31,,,,

以前我们登陆mysql数据库报错提示信息为:

ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)
我们需要去修改我们的root账户密码;
操作步骤如下:MySQL登陆报错修复

但是这次我像往常一样修改时,MySQL报错提示为:Unknown column 'password' in ‘field list’
这是因为 5.7版本下的mysql数据库下已经没有password这个字段了,password字段改成了authentication_string

修复方式如下:像上面链接一样操作,在最后修改密码时修改authentication_string字段值即可:

update user set authentication_string=password('root密码') where user='root';

然后重启数据库即可。

本文地址:https://blog.csdn.net/qq_34377273/article/details/107670004

《Unknown column ‘password‘ in ‘field list’.doc》

下载本文的Word格式文档,以方便收藏与打印。