https://www.cnblogs.com/Zeros/p/6043910.html
新安装的MySQL5.7,登录时提示密码错误,安装的时候并没有更改密码,后来通过免密码登录的方式更改密码,输入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('root') where user='root' ;即可
针对新安装的MySQL5.7,在尝试更改root用户密码时遇到未知字段错误。原password字段已更改为authentication_string,需使用新字段进行密码设置。
2737

被折叠的 条评论
为什么被折叠?



