FreeTDS 问题连接到 Mac 上的 SQL Server(来自服务器的意外 EOF) [英] FreeTDS problem connecting to SQL Server on Mac (Unexpected EOF from the server)

查看:62
本文介绍了FreeTDS 问题连接到 Mac 上的 SQL Server(来自服务器的意外 EOF)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了 FreeTDS 以连接到 SQL Server 数据库.当我尝试在 Mac (lion) 的终端中打开 TSQL 时,出现此错误:

I have setup FreeTDS to connect to SQL Server database. When I try to open TSQL in terminal on Mac (lion) I get this error:

locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
Error 20017 (severity 9):
    Unexpected EOF from the server
    OS error 36, "Operation now in progress"
Error 20002 (severity 9):
    Adaptive Server connection failed
There was a problem connecting to the server

有人知道是什么导致了这种情况吗?

Does anybody have a clue what could be causing this?

推荐答案

为了使这个持久化,我发现我需要编辑 freetds.conf 文件并将其全局设置在那里

To make this permenant I found I need to edit the freetds.conf file and set it globally in there

vim /usr/local/freetds/etc/freetds.conf

tds 版本 = 8.0

运行 tsql -C 仍然显示版本是 5.0 但现在每次连接都有效.

running tsql -C still showed that the version was 5.0 but connecting now worked every time.

这篇关于FreeTDS 问题连接到 Mac 上的 SQL Server(来自服务器的意外 EOF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆