gpt4 book ai didi

sql-server - 不允许具有 IP 地址的客户端访问服务器 Azure SQL 数据库

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

当我尝试连接到我的免费试用帐户的 Azure SQL 数据库时,遇到以下错误。谁能帮助我如何在我的免费试用帐户中设置规则?我没有看到任何设置它们的选项。

Cannot open server 'ccaausprddb001' requested by the login. Client with
IP address '125.16.236.150' is not allowed to access the server. To enable
access, use the Windows Azure Management Portal or run sp_set_firewall_rule on
the master database to create a firewall rule for this IP address or address
range. It may take up to five minutes for this change to take effect.
ClientConnectionId:f1ce6d56-c321-4458-a8dc-507f40e24108
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open server 'ccaausprddb001' requested by the login. Client with IP address '125.16.236.150' is not allowed to access the server. To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule on the master database to create a firewall rule for this IP address or address range. It may take up to five minutes for this change to take effect.

最佳答案

可以通过配置 SQL 数据库所在的 Azure SQL Server 的防火墙来解决此问题。我正在使用新的 Microsoft Azure 门户。请看下面的截图, Selecting the SQL server from the listed resources请记住,您需要在 SQL Server 中配置防火墙并管理 IP 地址,而不是在 SQL 数据库中。

选择 SQL Server 后,

  • 点击设置 -> 防火墙
  • 系统会要求您添加新规则。
  • 添加名称并输入要访问的 IP 地址(或范围)数据库。注意:Azure 会自动检测您当前的 IP。

Follow these steps

等待 5 分钟即可开始。我希望这会有所帮助。

关于sql-server - 不允许具有 IP 地址的客户端访问服务器 Azure SQL 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34760223/

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