mysql 忘记root密码后 ERROR 1054 (42S22): Unknown column 'Password' in 'field list'

来源:互联网 发布:js改变color rgb 编辑:程序博客网 时间:2024/05/24 04:27

mysql 忘记root密码后修改密码,发现update无法对password进行操作,并报出:ERROR 1054 (42S22): Unknown column 'Password' in 'field list'

大神答案:update mysql.user set authentication_string=password('123qwe') where user='root' and Host ='localhost'; 即用authentication_string替换了password。

0 0
原创粉丝点击