Re: Perl DBI connection to Postgres - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: Perl DBI connection to Postgres
Date
Msg-id 20050222143724.GB22550@wolff.to
Whole thread Raw
In response to Perl DBI connection to Postgres  (SG Edwards <s0460205@sms.ed.ac.uk>)
List pgsql-novice
On Tue, Feb 22, 2005 at 13:39:47 +0000,
  SG Edwards <s0460205@sms.ed.ac.uk> wrote:
> I'm tyring to use the Perl::DBI module to connect to a postgreSQL database but
> it doesn't seem to like it?
>
> What is the connection statement?! Have used:
>
> use DBI;
> $dbh=DBI->connect('DBI:Pg:user_name', 'user_name', 'password')

Perhaps you want:
$dbh=DBI->connect('DBI:Pg:dbname=user_name', 'user_name', 'password')

>
> but this returns a message that the connection failed due to a missing "=" after
> the user_name?
>
> Any suggestions?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

pgsql-novice by date:

Previous
From: john-paul delaney
Date:
Subject: Re: Query combination query. (fwd)
Next
From: Bruno Wolff III
Date:
Subject: Re: Query combination query. (fwd)