解决 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使权限配置项立即生效。

就可以啦~

posted @ 2018-09-16 16:27  Sylvia_717  阅读(141)  评论(0编辑  收藏  举报