mssql-cli connect to local server server container error occurred during the pre-login handshake

centos entity-framework-core sql-server sql-server-linux

Question

I just run sql server via docker on CentOS 7

sudo docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Admin@2019'  -p 1433:1433 --name sql2017  -d mcr.microsoft.com/mssql/server:2017-latest

then, I try to connect via mssql-cli got error:

A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)

Please note that when try to use sqlcmd, it works fine:

./sqlcmd -S localhost -U SA -P 'Admin@2019'

Also I have same issue when use in ASP.NET EF Core

1
1
7/2/2019 1:57:55 PM

Popular Answer

I found Configure CSF article and just configure iptables/csf

My Server config: CentOS + DirectAdmin + Docker

0
7/3/2019 7:30:25 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow