请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

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)

正在回答 回答被采纳积分+3

1回答

提问者 慕移动8056989 2023-06-15 12:17:46

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

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

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

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

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号