每次执行到db.Ping()都返回: Login error: read tcp 10.1.8.159:5902->192.168.7.209:1433: wsarecv: An existing connection was forcibly closed by the remote host 调试看源码看的不是太懂,大侠指教
有疑问加站长微信联系(非本文作者)
![](https://static.golangjob.cn/static/img/footer.png?imageView2/2/w/280)
每次执行到db.Ping()都返回: Login error: read tcp 10.1.8.159:5902->192.168.7.209:1433: wsarecv: An existing connection was forcibly closed by the remote host 调试看源码看的不是太懂,大侠指教
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
`单行代码`
连接字符串加上 “encrypt=disable;” 试试