本文共 183 字,大约阅读时间需要 1 分钟。
错误的原因是 5.7版本下的mysql数据库下已经没有password这个字段了,password字段改成了authentication_string
update mysql.user set authentication_string=password('密码') where user='用户名'; #修改成功
flush privileges; #立即生效
转载地址:http://pihof.baihongyu.com/