1

我在服务器端的 pg_hba.conf 中添加了这一行:

host     all         all    host_ip             md5

但我仍然收到错误

DBI connect('database=databasename;host=server_host_ip','username',...) failed: FATAL: no pg_hba.conf entry for host "host_ip", user "username", database "databasename", SSL off at / usr/local/share/perl/5.10.1/DBIx/DataStore.pm 第 1983 行。
[2012 年 8 月 24 日星期五 11:01:03] /usr/local/share/perl/5.10.1/DBIx/DataStore.pm, 1029:验证与主数据库的连接失败!
死于 /usr/local/share/perl/5.10.1/DBIx/DataStore.pm 第 1029 行。`

我错过了什么?

更新
perl merge_infos.pl

DBI connect('database=diamas;host=67.23.10.243','dia',...) failed: FATAL:  no pg_hba.conf entry for host "38.104.59.18", user "dia", database "diamas", SSL off at /usr/local/share/perl/5.10.1/DBIx/DataStore.pm line 1983.  

pg_hba.conf(远程服务器)

host    all         all         38.104.59.18/32       trust  

调用(本地机器)
(在脚本中)merge_infos.pl

use DBIx::DataStore ( config => 'yaml' );
my $olddb = DBIx::DataStore->new('www');

数据存储.yml

www:
primary:
driver: Pg
database: diamas
user: dia
password: ***
host: 67.23.10.243
schemas:
  - public
4

1 回答 1

0

我编辑了错误的 pg_hba.conf 文件

于 2012-08-28T17:09:45.927 回答