拒绝了1433端口的本地计算机sql连接 [英] refused my local machine sql connection for 1433 port

查看:57
本文介绍了拒绝了1433端口的本地计算机sql连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下连接字符串连接sql服务器,但出现错误:

I'm trying to connect sql server using following connection string but getting error:

<connectionStrings>
  <add name="DefaultConnection" 
       connectionString="Server=MyMachine32\SQLEXPRESS,1433;Database=MembershipDB;User ID=sa;Password=mydata@123" 
       providerName="System.Data.SqlClient"/>
</connectionStrings>

错误:

无法建立连接,因为目标计算机主动拒绝了连接

No connection could be made because the target machine actively refused it

我已经从Sql服务器配置管理器中启用了TCP/IP.还有什么需要的?

I have already enabled TCP/IP from Sql server configuration manager. what else needed?

推荐答案

您已用"Azure"标记了您的问题.

You have tagged your question with "Azure".

因此,请检查在Azure设置中是否有规则要授予您对Azure空间中托管的数据库上的计算机的访问权限.

So, check if in Azure settings there is a rule to grant at your machine access on DB hosted in Azure space.

您可以此处,有关Azure防火墙规则的指南.

You can go here, a guide about Azure firewall rule.

这篇关于拒绝了1433端口的本地计算机sql连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆