简体   繁体   English

错误:无法连接到本地主机:1433 - 连接 ECONNREFUSED 127.0.0.1:1433 docker

[英]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.

相关问题 Node.js MSSQL tedius ConnectionError: Failed to connect to localhost:1433 - connect ECONNREFUSED - Node.js MSSQL tedius ConnectionError: Failed to connect to localhost:1433 - connect ECONNREFUSED ConnectionError:无法连接到MyServer:1433 - ConnectionError: Failed to connect to MyServer:1433 telnet 本地主机 1433 失败 - telnet localhost 1433 failed Mssql 登录失败 ECONNREFUSED 127.0.0.1:1433 - Mssql login fail ECONNREFUSED 127.0.0.1:1433 ConnectionError [SequelizeConnectionError]:无法连接到:1433 - 无法连接(序列)本地机器 window 10 - ConnectionError [SequelizeConnectionError]: Failed to connect to :1433 - Could not connect (sequence) local machine window 10 无法连接到 localhost/127.0.0.1:44326 - Failed to connect to localhost/127.0.0.1:44326 TOMCAT:与主机 127.0.0.1、端口 1433 的 TCP/IP 连接失败 - TOMCAT: The TCP/IP connection to the host 127.0.0.1, port 1433 has failed 无法在 15000 毫秒内连接到 mydb.database.windows.net:1433(Microsoft Azure SQL 数据库) - Failed to connect to mydb.database.windows.net:1433 in 15000ms (Microsoft Azure SQL Database) 到主机 localhost 的 TCP/IP 连接,端口 1433 失败错误,需要帮助 - The TCP/IP connection to the host localhost, port 1433 has failed error, need assistance SQLServer异常; 到主机 localhost 的 TCP/IP 连接,端口 1433 失败 - SQLServerException; The TCP/IP connection to the host localhost, port 1433 has failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM