简体   繁体   中英

Error: Failed to connect to localhost:1433 - connect ECONNREFUSED 127.0.0.1:1433 docker

I am using Docker to install SQL Server on Mac OS. But i have an error Error: Failed to connect to localhost:1433 - connect ECONNREFUSED 127.0.0.1:1433 . I have set memory to 6GB, password is strong enough but it still not works.

I got the same issue when I've tried to connect Azure Data Studio to the container,

I used the command lsof -nP +c 15 | grep LISTEN lsof -nP +c 15 | grep LISTEN

turns out that it listen on port 1401

So I wrote that in the field of the server " localhost, 1401 " and it works, There is another solution,

which is in the docker PREFERENCES and its about the memory you have to give it at least 3.25 GB so that the SQL Server runs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM