arush_pareek has asked for the wisdom of the Perl Monks concerning the following question:
But it gives me error as below :-#!/usr/bin/perl use DBI; my $dbh = DBI->connect('dbi:Pg:dbname=postgres;host=laddakh','postgres +','postgres',{AutoCommit=>1,RaiseError=>1,PrintError=>0});
my postgres is installed on a server name 'laddakh'.DBI connect('dbname=postgres;host=laddakh','postgres',...) failed: cou +ld not connect to server: Connection refused Is the server running on host "laddakh" and accepting TCP/IP connections on port 5432? at tt.pl line 5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error while connecting to postgres through DBI
by wind (Priest) on Jun 09, 2011 at 05:30 UTC | |
by tye (Sage) on Jun 09, 2011 at 06:40 UTC | |
by lamprecht (Friar) on Jun 09, 2011 at 10:04 UTC |