连接MySql时报错MySql Retrieval of the RSA public key is not enabled for insecure connections

在Net6.0连接MySql时出错,提示MySql Retrieval of the RSA public key is not enabled for insecure connections

将使用的账号的密码类型改为mysql_native_password,并在连接链接的后面添加参数allowPublicKeyRetrieval=true即可。

参考文档:https://blog.csdn.net/hefeng_aspnet/article/details/124319530

posted @ 2022-08-11 14:40  真真真甜  阅读(9942)  评论(0)    收藏  举报