美文网首页
Mysql 8.0.18 远程连接报错:2059 - Authe

Mysql 8.0.18 远程连接报错:2059 - Authe

作者: 文沐2023 | 来源:发表于2019-10-31 11:58 被阅读0次

此问题是由于高版本MySQL更改加密方式导致,部分低版本的连接工具可能不支持改加密方式。

解决方法:

mysql -u root  // 登录MySQL
use mysql; // 进入MySQL数据库
select user,plugin from user where user='root';  // 查看root用户使用的plugin

ps: 如果是其他用户,请更换成 select user,plugin from user where user='其他用户';

image.png

我们需要把 caching_sha2_password 更换成 mysql_native_password;

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';

相关文章

网友评论

      本文标题:Mysql 8.0.18 远程连接报错:2059 - Authe

      本文链接:https://www.haomeiwen.com/subject/meozvctx.html