Search Postgresql Archives

Postgres connection error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

I keep getting the following error when attempting to establish a connection (from Perl):

install_driver(Pg) failed: DBD::Pg object version undef does not match bootstrap parameter 2.2.2 at /usr/lib/perl/5.8/DynaLoader.pm line 245.

Here's the body of code used to connect:
sub db_connect {
 my $dbname = shift;
 my $host = shift;
 my $user = shift;
 my $pass = shift;
 my %db_attr = (
   PrintError => 0,
   RaiseError => 0,
 );

my $dsn = "DBI:Pg:dbname=$dbname;host=$host"; my $db = DBI->connect($dsn, $user, $pass, \%db_attr) or die "Can't connect() to database $dbname: +$DBI::errstr";
 return ($db);
}

Am I in error here, or ...? We're running Debian Linux (etch, I think...).

TIA, -Vern
begin:vcard
fn:Vern Van Zandt
n:Van Zandt;Vern
email;internet:vernon.vanzandt@xxxxxxxxxxxxxxxxxxxxxxxxx
tel;work:1 301 560 2504 ext 210
version:2.1
end:vcard

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux