Skip site navigation (1) Skip section navigation (2)

connect from perl: error in

From: "Marc Mamin" <m(dot)mamin(at)gmx(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: connect from perl: error in
Date: 2005-04-28 14:53:47
Message-ID: (view raw or whole thread)
Lists: pgsql-novice

When I try to connect as following, I get an error in

use DBI;

# connecting to database

my $username = 'marc';
my $password = 'marc';

$dbh = DBI->connect("DBI:Pg:dbname=my_db", $username, $password,{AutoCommit
=> 1, RaiseError => }) || die "Unable to connect to database $DBI::errstr";

 => Not a CODE reference at /usr/lib/perl5/5.8.3/ line 178.

Any idea what this error means?

Maybe there are some right issue; I installed DBI and DBD as root, I'm
calling the script as root, but postgres runs under its own user.

cpan>  install DBI
cpan>  install DBD::pg



+++ Sparen beginnt mit GMX DSL:


pgsql-novice by date

Next:From: BobDate: 2005-04-28 14:55:24
Subject: Re: temp tables
Previous:From: Schuhmacher, BretDate: 2005-04-28 14:01:42
Subject: Re: temp tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group