[英]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.我正在使用 Docker 在 Mac OS 上安装 SQL Server。 But i have an error
Error: Failed to connect to localhost:1433 - connect ECONNREFUSED 127.0.0.1:1433
.但我有一个错误
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.我已将内存设置为 6GB,密码足够强,但仍然无效。
I got the same issue when I've tried to connect Azure Data Studio to the container,当我尝试将 Azure Data Studio 连接到容器时,我遇到了同样的问题,
I used the command lsof -nP +c 15 | grep LISTEN
我使用了命令
lsof -nP +c 15 | grep LISTEN
lsof -nP +c 15 | grep LISTEN
turns out that it listen on port 1401原来它在端口1401上监听
So I wrote that in the field of the server " localhost, 1401 " and it works, There is another solution,所以我在服务器字段中写了“ localhost, 1401 ”并且它有效,还有另一种解决方案,
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.这是在 docker PREFERENCES 中,它是关于你必须给它至少 3.25 GB 的内存,以便 SQL Server 运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.