ERROR 1054 (42S22): Unknown column 'password' in 'field list' 解决方法

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/weixin_43671437/article/details/102778602

修改密码是报错

ERROR 1054 (42S22): Unknown column ‘password’ in 'field list’

因为mysql-5.7及以上版本已没有password字段,已将password字段修改为authentication_string字段

解决方法:

将password修改为authentication_string

update user set authentication_string=password('you new password') where user='root';

猜你喜欢

转载自blog.csdn.net/weixin_43671437/article/details/102778602