MYSQL 8.0 以上包含了以下三种加密插件
-
caching_sha2_password
-
sha256_password
-
mysql_native_password
与mysql8以前版本的mysql_native_password
插件相比,caching_sha2_password
和sha256_password
身份验证插件提供了更安全的密码加密。且caching_sha2_password
在性能上优于sha256_password
,因此在MYSQL 8.0中caching_sha2_password
成为了默认的加密插件。
问题:
navicat 连接时报错:Authentication plugin 'caching_sha2_password' cannot be loaded
方案一:
修改mysql配置文件,将加密规则写进去
[mysqld]
default_authentication_plugin=mysql_native_password
方案二:
升级客户端Navicat。