在开始菜单找到
右键以管理员身份运行
use mysql;
SELECT `Host`,`User` FROM user;
UPDATE user SET `Host` = '%' WHERE `User` = 'root' LIMIT 1;
flush privileges;
exit;
错误:1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client.
那是因为你的数据库版本比较高,继续执行下面的语句
alter user 'root'@'%' identified with mysql_native_password by 'mypassword';
flush privileges;