需要有关远程 SQL 服务器的帮助。一些与 Azure Portal 有关
我应该为用户设置一个本地主机。但事实证明该网站是在 SQL 服务器上而不是 MySQL 上。
我安装了 wamp 并且网站运行良好。但只要有数据库连接,它就会尝试连接到远程服务器,但远程服务器不提供访问权限。我有一些 Visual Studio 和配置文件等等。我不知道该怎么办。
本地主机上的网站尝试连接到远程服务器,但我收到以下消息: “无法连接。数组([0] = ...用户'####'登录失败...无法打开客户端请求的服务器'########'。客户端带有#### # 不允许 IP 访问此服务器。要启用访问,请使用 SQL Azure 门户或在 master 数据库上运行 sp_set_firewall_rule。
我在连接文件中也有这段代码,我认为这表明数据库托管在该服务器上。网站:
$srver = “http://########.cloudapp.net/”;
任何帮助将不胜感激!
I was supposed to set up a localhost for a user. But it turned out that the website is on an SQL server and not MySQL.
I installed wamp and the website runs fine. But wherever there is a database connection, it tries to connect to the remote server, which doesn't give access. I have some visual studio and configuration files and what not. And I am clueless about what to do.
The website on the localhost tries to connect to the remote server, but i get this message:
"Could not connect. Array ([0] = ... Login failed for user '####'... cannot open server '########' requested by client. client with ##### IP is not allowed to access this server. To enable access, use the SQL Azure Portal or run sp_set_firewall_rule on master database..
I also have this bit of code in the connection file, that i think shows that the database is hosted on this website:
$srver = "http://########.cloudapp.net/";
Any help will be appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
配置 SQL Azure 时,可以指定允许的 IP 地址。正如错误消息所示,请求的 IP 无权访问该数据库。
When you configure SQL Azure, you can specify what the allowed IP addresses are. As the error message indicates, the requesting IP is not authorized to access that database.