解决 MySQL 2059 链接问题

cmd

找到对应文件夹

MySQL -u root -p

输入密码链接

执行命令

alter user 'root'@'%' identified with mysql_native_password by '你的密码';

(如果出现错误 尝试

alter user 'root'@'localhost' identified with mysql_native_password by '你的密码';

最后执行命令flush privileges使权限配置项立即生效。

就可以啦~

猜你喜欢

转载自www.cnblogs.com/Sylvialearning/p/9656468.html