perl access

From: Tom Allison <tallison(at)tacocat(dot)net>
To: postgresql <pgsql-general(at)postgresql(dot)org>
Subject: perl access
Date: 2004-06-15 00:19:22
Message-ID: 40CE408A.5010803@tacocat.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm stuck on something stupid.

I'm trying to use perl to open up a database handle and I can't find the
right database dsn string.

my $data_source = "dbi:Pg:mydatabase";
my $username = "mydatebasereader";
my $auth = "secret";

my $dbh = DBI->connect($data_source, $username, $auth);

DBI connect('postfix','postfix',...) failed: missing "=" after "postfix"
in connection info string at /home/tallison/bin/perl.pl line 21

I've tried variations on the $data_source but I'm afraid I'm working on
a hit-n-miss process.

Can someone point me?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim Seymour 2004-06-15 00:48:58 Re: perl access
Previous Message Tom Allison 2004-06-14 23:58:24 perl access