mysql 7.11 修改密码错误 ERROR 1054 (42S22)

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';

问题解决

posted @ 2016-03-08 21:26  linchw3  阅读(1414)  评论(0编辑  收藏  举报