authentication method ‘caching_sha2_password’ not supported by any of the available plugins

数据库连接持续报错:authentication method ‘caching_sha2_password’ not supported by any of the available plugins

C#连接MySQL数据库出现以下异常----用户密码验证问题:
authentication method ‘caching_sha2_password’ not supported by any of the available plugins
MySQL8以上要设置为mysql_native_password

authentication method ‘caching_sha2_password’ not supported by any of the available plugins
root设置为mysql_native_password依然弹出上述异常
此时注意!!检查导入的mysql.data.dll版本,要和MySQL8匹配
版本适配,数据库连接成功