DBeaver连接MySQL 8.0显示"Unable to load authentication plugin 'caching_sha2_password'."错误的问题

下载MySQL绿色版本mysql-8.0.12-winx64,手动安装完成后。使用DBeaver连接提示"Unable to load authentication plugin 'caching_sha2_password'."。网上查阅资料发现My SQL 8.0.4开始默认使用新的认证插件"caching_sha2_password",而DBeaver还在使用原来的"mysql_native_password"插件。于是修改my.ini文件,设置默认使用mysql_native_password:

[mysqld]
default_authentication_plugin=mysql_native_password

参考资料:

https://*.com/questions/49194719/authentication-plugin-caching-sha2-password-cannot-be-loaded