在使用EFCore生成数据库的时候,报上面的错误!
解决方法:
加(Encrypt=True;TrustServerCertificate=True;)即可:
"ConnectionStrings": {
"DefaultConnection": "Data Source=LAPTOP;Initial Catalog=DB;persist security info=True;User ID=sa;Pwd=XXXXX;Encrypt=True;TrustServerCertificate=True;"
},
- successfully established connection server errorerror successfully established connection successfully established connection server server error sqlexception successfully error server-side processing connected establishing connection wordpress database establishment connections servertoo rejected establishing verification connection recommende established connection exception办法 establishing verification recommended connection verification connection establish服务器