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

posted on 2022-05-09 11:52  power_yu  阅读(399)  评论(0编辑  收藏  举报

导航