trong khi cố gắng kết nối với remort máy chủ MSSQL bởi lệnhLỗi 20009 (mức độ nghiêm trọng 9): Không thể kết nối: Adaptive Server không có sẵn hoặc không tồn tại OS lỗi 111, "Kết nối từ chối"
tsql -S SQLEXPRESS -U sa
passwod: sa nó throws lỗi như lỗi 20009 (mức độ nghiêm trọng 9): không thể kết nối: Adaptive server không có sẵn hoặc không tồn tại OS lỗi 111, "Kết nối từ chối"
bước tôi đi theo /etc/freetds/freetdsconf.conf
[SQLEXPRESS]
host = 192.168.1.9
port = 1433
tds version = 8.0
client charset = UTF-8
/etc/odbcinst.ini
[FreeTDS]
Description = TDS driver (Sybase/MS SQL)
Driver =/usr/lib/i386-linux-gnu/odbc/libtdsodbc.so
Setup =/usr/lib/i386-linux-gnu/odbc/libtdsS.so
CPTimeout =
CPReuse =
FileUsage = 1
etc/odbc.ini
[SQLEXPRESS]
Driver = FreeTDS
Description = ODBC connection via FreeTDS
Trace = No
Servername = 192.168.1.9
Database = cakephp_results
Port = 1433
UID = sa
PWD = sa
ReadOnly = No
http://stackoverflow.com/a/26229487/2083490 –