天天看点

MySQL - “Unknown Column ‘Password‘ In Field List”

错误的原因是 5.7版本下的mysql数据库下已经没有password这个字段了,password字段改成了authentication_string

修改密码时需将​​

​password​

​​改成​

​authentication_string​

MySQL - “Unknown Column ‘Password‘ In Field List”

解决方案

update mysql.user set authentication_string=password('12345678') where user='**';      
mysql> flush privileges;      
mysql -u root -p
> 输入密码 (12345678)