Mac/.net 7.0, 执行dotnet ef update不能成功

来源:1-2 【讨论题】对于不断推出的新框架,我们应该如何学习?

慕移动8056989

2023-06-15

A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)

写回答

1回答

慕移动8056989

提问者

2023-06-15

搜了网上的帖子,据说是新的.Net版本中默认的连接安全设置改变了

给出的解决方法是,再connectionString中,添加“Encrypt=false”

然后试了一下,dotnet ef update可以执行成功了,再Dbeaver也看到数据库成功创建了,

但是不知道“Encrypt=false”这样做有什么风险?在生产环境也可以这样做吗?

0
0

.Net 开发电商后端API 从0到精通RESTful

. Net 实战+RESTful思想纵深课程,开发优雅RESTful风格API。

977 学习 · 547 问题

查看课程