升级的mysql5.7修改完root账户密码后仍然无法登陆,查阅资料可能和user表的plugin 字段为空有关. 1.首先将my.ini中加入在[mysqld]节点上加skip-grant-tables 主要作用是:跳过表中的验证,可以无密码登陆. 2.登录之后查询plugin字段值: mysql> select plugin from user where user = 'root'; 执行结果plugin字段为空. 3.更新plugin字段为mysql默认值: mysql> update…