DigitalKitty has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use warnings; use strict; use DBI; my $db = DBI->connect('dbi:PgPP:testdb', 'postgres', 'xxxxxxxxx'); if( $db ) { print "Connected!\n"; } else { print "Nope. Sorry.\n"; }
C:\Perl2\bin>perl test_pg.pl DBI connect('testdb','postgres',...) failed: Couldn't connect to /tmp/ +.s.PGSQL.5432: at C:/Perl2/site/lib/DBD/PgPP.pm line 124 at test_pg.p +l line 5
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Trouble establishing a dialogue between Perl and PostgreSQL
by talexb (Chancellor) on Jan 14, 2008 at 21:15 UTC | |
Re: Trouble establishing a dialogue between Perl and PostgreSQL
by erix (Prior) on Jan 14, 2008 at 21:08 UTC | |
Re: Trouble establishing a dialogue between Perl and PostgreSQL
by olus (Curate) on Jan 14, 2008 at 20:47 UTC |