mysql8.0.11安装完成后客户端工具navicat连接报2059 - Authentication plugin 'caching_sha2_password' cannot be lo

mysql8.0.11安装完成后客户端工具navicat连接报2059 - Authentication plugin ‘caching_sha2_password’ cannot be loaded: …解决方法

首先原因分析:
navicat客户端连接工具用的身份插件为mysql_native_password,目前mysql8.0.11安装完成,默认身份插件为caching_sha2_password,所以导致找不到插件,连接报2059错误。
解决方法:
登录mysql
mysql> use mysql
查看当前认证插件
mysql> select user,host,plugin,authentication_string from user;
mysql8.0.11安装完成后客户端工具navicat连接报2059 - Authentication plugin 'caching_sha2_password' cannot be lo
修改插件格式(注意这里的BY后加的新密码,需要复杂的组合密码,否否无法更新成功):
mysql> ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘[email protected]’;
显示如下表示修改插件成功
Query OK, 0 rows affected
重启服务后,即可用新的密码进行navicat进行连接成功。
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected

mysql8.0.11安装完成后客户端工具navicat连接报2059 - Authentication plugin 'caching_sha2_password' cannot be lo