赞
踩
最近在使用EFCore去连接阿里云上面的数据库进行更新表结构的时候,总是提示下面的报错信息,报错信息如下:
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就可以了,代码如下:
"Default":'Server=127.0.0.1;port=3306;Database=数据库;Uid=账户;Pwd=密码;CharSet=utf8;Allow User Variables=True;sslMode=None;';
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。