5.7版本的MYSQL的用户表的密码字段变了, 再也不是password字段 而是authentication_string字段。mysql
而后改密码能够用: update mysql.user set authentication_string=password('密码') where user='root' and Host = 'localhost'; 或者 set password for 'root'@'localhost'=password('密码');sql