解决SQLyog连接报错 Error No.2058 Plugin caching_sha2_password could not be loaded

这篇博客介绍了在遇到使用SQLyog连接MySQL8.0时出现的Error No.2058问题,原因是MySQL8.0引入了新的密码认证方式caching_sha2_password。提供了两种解决方案:一是修改用户密码和加密方式;二是更改my.ini配置文件,将默认密码规则设回mysql_native_password,并执行权限刷新及重置root密码。
摘要由CSDN通过智能技术生成

MySQL8.0新的密码认证方式

The caching_sha2_password and sha256_password authentication plugins provide more secure password encryption than the mysql_native_password plugin, and caching_sha2_password provides better performance than sha256_password. Due to these superior security and performance characteristics of caching_sha2_password, it is as of MySQL 8.0 the preferred authentication plugin, and is also the default authentication plugin rather than mysql_native_password. This change affects both the server and the libmysqlclient client library:

Changes in MySQL 8.0

MySQL8以前版本使用的密码加密规则是mysql_native_password

MySQL8使用的密码加密规则是caching_sha2_password

方法一:修改用户密码和加密方式

use mysql 
ALTER USER 'root'@'localho
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值