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

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。

发布了32 篇原创文章 · 获赞 1 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/lhf2112/article/details/52079065