使用 EFCore 去连接 mysql 数据库的时候报错 adding ‘EnableRetryOnFailure()’ to the ‘UseMySql’ call.
An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding ‘EnableRetryOnFailure()’ to the ‘UseMySql’ call.”的解决方案。将数据库连接配置里的连接池设置为tr
·
“An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding ‘EnableRetryOnFailure()’ to the ‘UseMySql’ call.”的解决方案。
使用 EFCore 去连接 mysql 数据库的时候,提示下面的报错信息:
这种情况可以尝试在连接字符串中添加
“;SslMode=None;Pooling=true”
手动关闭SSL连接:SslMode=None
将数据库连接配置里的连接池设置为true :Pooling=true
更多推荐
已为社区贡献1条内容
所有评论(0)