我正在尝试从 Ubuntu 12.04 连接到 SQL-Azure。
我已经用 openssl 和 libiconf 编译了 freeTds-0.91
tsql -H XXXXXXXX.database.windows.net -U Username -D DatabaseName -p 1433 -P Password
我尝试使用上述语句进行连接,但出现此错误:
locale is "en_ZA.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
Default database being set to DatabaseName
Error 20004 (severity 9):
Read from the server failed
OS error 104, "Connection reset by peer"
Error 20002 (severity 9):
Adaptive Server connection failed
There was a problem connecting to the server
我的 tsql -C 输出:
Compile-time settings (established with the "configure" script)
Version: freetds v0.91
freetds.conf directory: /usr/local/etc
MS db-lib source compatibility: no
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: 5.0
iODBC: no
unixodbc: no
SSPI "trusted" logins: no
Kerberos: no
我似乎找不到任何有关导致此问题的原因以及如何解决此问题的信息。
任何帮助将不胜感激。