python - 无法打开登录请求的服务器

标签 python azure azure-sql-database pyodbc

我正在尝试使用 pyodbc 连接到我的 Azure SQL 数据库。我正在使用的azure帐户的用户名是[email protected] (我的大学帐户)。当我尝试连接到数据库时,出现错误

无法打开登录请求的服务器“student.bham.ac.uk”。登录失败。 (40532)

我使用的凭据是正确的。该错误让我认为它可能会混淆我的数据库服务器登录?此错误意味着什么以及如何解决该问题?

最佳答案

This似乎对我有用:

If your SQL Database server is called myazureserver and your login is <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cdb8bea8bf8da8b5aca0bda1a8e3aea2a0" rel="noreferrer noopener nofollow">[email protected]</a>, then you must supply your login as <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="94e1e7f1e6d4f1ecf5f9e4f8f1baf7fbf9" rel="noreferrer noopener nofollow">[email protected]</a>@myazureserver.

关于python - 无法打开登录请求的服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56824577/

相关文章:

azure - 如何知道 Azure 函数是否正在插槽中运行

Azure SQL 故障转移组,宽限期是什么意思?

asp.net-core - 如何避免在插入 EF Core 后选择插入的实体?

python - opencv和特征脸识别器,python

Python - 如果我删除 Lambda 那么应用程序未定义?

python - Scrapy -- 从脚本调用 scrapy 时,如何立即将字典返回给进程,而不是导出到 json 文件

java - JDBC 断管 Mac

java - 大型 XML 的高效解析器

amazon-web-services - 是否有 AWS/Azure/Gcloud API 的包装器?

asp.net-mvc-4 - Azure - 使用 ADFS 在 Azure 中运行应用程序返回以下错误 : Exception message: ID4014: A SecurityTokenHandler is not