MySQL5.7 更改root密码时报错

来源:互联网 发布:文件服务器监控软件 编辑:程序博客网 时间:2024/05/19 17:08

MySQL5.7 更改root密码时报错

注意:如果是MySQL5.7,更改密码时出现ERROR 1054(42S22): Unknown column 'password' in 'fie,原来是mysql数据库下已经没有password这个字段了,password字段改成了

authentication_string

所以更改语句替换为以下语句即可

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

1 0
原创粉丝点击