简体   繁体   English

无法连接到PostgreSQL数据库

[英]Cannot Connect To PostgreSQL Database

I am trying to connect to my database through R, but am getting an error. 我正在尝试通过R连接到我的数据库,但出现错误。 My coworker connects perfectly with the same exact script. 我的同事使用完全相同的脚本完美连接。 Anyone know what else could be the problem? 有人知道还有什么问题吗? We have the same packages installed. 我们安装了相同的软件包。

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

PostgreSQL servers control who they listen and talk too. PostgreSQL服务器也控制他们听和说谁。 You did well comparing the same script between machines, but you may be coming from different subnets, or any other difference which would tickle this behaviour. 比较机器之间的同一脚本,您做得很好,但是您可能来自不同的子网,或者来自其他可能使这种行为发痒的差异。

On my box, this is controlled by the file /etc/postgresql/9.1/main/pg_hba.conf -- hba stands for host-based access. 在我的盒子上,这是由文件/etc/postgresql/9.1/main/pg_hba.conf控制的-hba代表基于主机的访问。

So you may have to talk to your DBA or sysadmin. 因此,您可能必须与DBA或sysadmin进行交谈。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM