- 📚 相关推荐文章
- UE 创建c++class报错Unhandled Exception: EXCEPTION 推荐
- Windows fatal exception: access violation 推荐
- VMware Exception 0xc0000005 (access violation) has occurred. 报错 推荐
- OSError: exception: access violation writing 0x0000000000000000 推荐
- idea使用spring框架Exception in thread "main" java.lang.IllegalStateException错误 推荐

“An exception has been raised that is likely due to a transient failure. Consider enabling transient
本文由 比特飞 原创发布,欢迎大家踊跃转载。
转载请注明本文地址:“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.”的解决方案 | .Net中文网。
描述使用 EFCore 去连接 mysql 数据库的时候,提示下面的报错信:
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.
解决在连接字符串中加入 sslMode=None 就可以了,代码如下:
Server=localhost;
port=3306;
Database=yourDatabase;
Uid=yourUserId;
Pwd=yourPassword;
Allow User Variables=True;
sslMode=None;
本文由 比特飞 原创发布,欢迎大家踊跃转载。
转载请注明本文地址:“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.”的解决方案 | .Net中文网。