网站增加SSL证书后,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.
Cannot access a disposed object.
解决方案
连接字符串 加上;sslMode=None就可以了,代码如下:
"Default":'Server=127.0.0.1;port=3306;Database=数据库;Uid=账户;Pwd=密码;CharSet=utf8;Allow User Variables=True;sslMode=None;';
出处https://blog.csdn.net/PaPc_Suei/article/details/106100625
标签:解决办法,None,resiliency,0.1,raised,SSL,transient,mysql,sslMode 来源: https://www.cnblogs.com/power-yu/p/16248648.html