我无法访问postgres数据库。 [英] I am unable to access postgres database.
问题描述
我无法访问postgres数据库。我跟着 https://docs.microsoft.com/en-us/azure/postgresql/quickstart-create-server-database-portal
I am unable to access postgres database. I followed https://docs.microsoft.com/en-us/azure/postgresql/quickstart-create-server-database-portal
我收到以下错误。
推荐答案
Hi Vigneswara,
Hi Vigneswara,
您是否可以复制PostgreSQL实例的FQDN值,并从cmd行中键入:nslookup< Azure门户中的值>
Can you copy the FQDN value for your PostgreSQL instance and from a cmd line, type: nslookup <value from the Azure Portal>
这可能是一个DNS问题,其中PostgrSQL实例的FQDN值未在DNS基础结构中复制,或者您的PostgreSQL实例的实例名称值不正确。
This is likely a DNS issue, where either the FQDN value for your PostgrSQL instance had not replicated across DNS infrastructure or you have the incorrect instance name value for your PostgreSQL instance.
如果您从Windows主机运行,可以键入以下内容并重试,假设实例名称正确:
If you are running from a Windows host, can you type the following and retry, assuming the instance name is correct:
ipconfig / flushdns
ipconfig /flushdns
我无法重现此问题,因此我认为这是您的环境所特有的。
I am unable to reproduce this issue, so I am thinking that this is something unique to your environment.
这篇关于我无法访问postgres数据库。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!