mysql无法登录

很久没用root账户登录mysql发现无法登录

以为root密码被修改

修改root密码后还是无法登录

判断ip没权限

运行

Grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option;

解决

原文地址:https://www.cnblogs.com/sunang/p/6074165.html