1参考http://www.cnblogs.com/dee0912/p/6375729.html;
2如果仍不行
在my.ini中添加了skip-grant-tables,然后不用密码登陆root。mysql> SELECT Host,User,Password,plugin from user;发现plugin参数不是“mysql_native_password”
3update user set plugin='mysql_native_password';搞定。
1参考http://www.cnblogs.com/dee0912/p/6375729.html;
2如果仍不行
在my.ini中添加了skip-grant-tables,然后不用密码登陆root。mysql> SELECT Host,User,Password,plugin from user;发现plugin参数不是“mysql_native_password”
3update user set plugin='mysql_native_password';搞定。