gpt4 book ai didi

sql-server - Macbook Pro上的Azure Data Studio服务器连接错误

转载 作者:行者123 更新时间:2023-12-02 18:20:20 25 4
gpt4 key购买 nike

为了在Mac上运行SQL Server,我安装了Docker和SQL Server Management Studio(Azure Data Studio)并连接到服务器。但是,当我尝试重新连接时,出现以下错误。我找到了很多有关如何在Windows上解决此问题的建议,但在Mac上却没有。

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)

最佳答案

从偏好设置中将Docker内存从2 GB增加到4 Gb,然后再次运行以下命令,

docker pull microsoft / mssql-server-linux:2017-latest

现在,启动Docker镜像的实例。

docker run -d --name name_your_container -e'ACCEPT_EULA = Y'-e'SA_PASSWORD = P @ 55w0rd'-e'MSSQL_PID = Developer'-p 1433:1433 microsoft / mssql-server-linux:2017-latest

关于sql-server - Macbook Pro上的Azure Data Studio服务器连接错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54390676/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com