gpt4 book ai didi

sql-server - 无法从本地连接到 Windows Azure 虚拟机中的 SQL Server

转载 作者:行者123 更新时间:2023-12-03 04:37:19 26 4
gpt4 key购买 nike

我正在尝试从本地 SQL Server Management Studio 连接到 Azure 上的 VM 中托管的 SQL Server。我遵循了所有的指示 http://www.windowsazure.com/en-us/manage/windows/common-tasks/install-sql-server/并创建了必要的端点:

enter image description here

不知何故,我无法连接到 SQL Server,出现此错误

<小时/>
Cannot connect to xxx.cloudapp.net.
ADDITIONAL INFORMATION:

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
(Microsoft SQL Server, Error: 53)


The network path was not found
<小时/>

我已经尝试临时禁用虚拟机上的 Windows 防火墙 - 但没有成功。有什么建议吗?

最佳答案

我遇到了同样的问题,此故障排除帮助我接近解决方案:

Use SQL Server Management Studio to connect remotely to an SQL Server Express instance hosted on an Azure Virtual Machine

总结一下,我所做的,我不知道所有这些步骤是否必要,所以您应该在每个步骤之后进行测试:

1) 在 SQL Server 配置管理器中启用协议(protocol)中的命名管道

2)在VM中为sql server端口添加Windows防火墙入站规则(在我的例子中默认为1433,在你的例子中似乎是1435,确保在sql server配置中它是1435)

3) 如果您没有在 VM>MSSMS 本地创建登录,请确保您使用的是 sql server 身份验证登录(不是 Windows 身份验证)

4) 确保 SQL Server 配置为混合身份验证 (http://www.katieandemil.com/microsoft-sql-server-error-18456-login-failed-for-user)

5) 确保 sql server 浏览器正在运行

希望这有帮助:)

关于sql-server - 无法从本地连接到 Windows Azure 虚拟机中的 SQL Server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19026243/

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