网站增加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;';