Unable to connect to server on custom port
See original GitHub issueHi,
I`m having problems with connecting to SQL Server On Linux using mssql-cli using Ubuntu 16.04. This is not related to firewall etc, as connection from same machine using mssql tool works fine.
Steps to reproduce:
- setup sql server on port different than 1433
- try to connect using following command:
mssql-cli -S HOST,PORT
Expected result: Successful connection
Actual result:
Connection did not succeed. Error message: Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=111; handshake=363; [Login] initialization=4; authentication=8; [Post-Login] complete=14033;
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:6
Top GitHub Comments
This works for me:
You should make sure to prefix with
tcp:
and have the wholeprotocol:host,port
in quotes.It works for me with that comma separation (even without double quotes).
The issue I had is that a comma separator is not intuitive. I first assumed there was some other flag (
-P
? Nope, that’s password), then I triedhost:port
.I think this needs to be documented. PR #522 does that. (But it hasn’t been merged, and I don’t know why.)