2
我想從MacOS連接到遠程MSSQL數據庫。freetds連接問題macOS
我能夠連接到遠程數據庫使用freetds的
tsql -H servername.database.windows.net -U username -P password -D database_name -p 1433
但正如我做的/usr/local/etc/freetds.conf
文件中的條目,設置如下
[dbservername]
host = servername.database.windows.net
port = 1433
database = database_name
tds version = 7.3
並嘗試使用連接
tsql -S dbservername -U username -P password
我收到以下錯誤
locale is "C/UTF-8/C/C/C/C"
locale charset is "UTF-8"
using default charset "UTF-8"
2Msg 40532 (severity 20, state 1) from dbservername:
"Cannot open server "dbservername" requested by the login. The login failed."
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 v1.00.48
freetds.conf directory: /usr/local/Cellar/freetds/1.00.48/etc
MS db-lib source compatibility: no
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: 7.3
iODBC: no
unixodbc: no
SSPI "trusted" logins: no
Kerberos: no
OpenSSL: yes
GnuTLS: no
MARS: no
不知道如何解決這個問題?
只要編輯/ usr/local/etc /中的配置文件,更改就會自動反映到/usr/local/Cellar/freetds/1.00.48/etc中的配置文件中。 因此,這不會解決那裏的問題。 – anonR
啊,你必須建立一個符號鏈接。我會進一步審查。 – FlipperPA
我通過HomeBrew安裝,所以它會使符號鏈接相同。 – anonR