标签:
mysql> use mysql;
Database changed
mysql> update user set password=password(‘123456‘) where user=‘root‘;
ERROR 1054 (42S22): Unknown column ‘password‘ in ‘field list‘
mysql>
晚上被这个问题折腾了好久,最后发现window下这个版本的mysql密码列是authentication_string,所以正确的写法是:
mysql>update mysql.user set authentication_string=password(‘123456‘) where user=‘root‘ and Host =‘localhost‘;
问题解决
mysql 7.11 修改密码错误 ERROR 1054 (42S22)
标签:
原文地址:http://www.cnblogs.com/linchw3/p/5255800.html