目录
错误提示
1 | ERROR 1054 (42S22): Unknown column 'password' in 'field list' |
场景
输入update mysql.user set password=password(‘root’) where user=’root’时提示ERROR 1054 (42S22): Unknown column ‘password’ in ‘field list’
原因
新版(如mysql5.7)数据库下password字段更新为authentication_string
解决
1 | update MySQL.user set authentication_string=password('root') where user='root' ; |
即可。