Perl DBI connection to Postgres

From: SG Edwards <s0460205(at)sms(dot)ed(dot)ac(dot)uk>
To: pgsql-novice(at)postgresql(dot)org
Subject: Perl DBI connection to Postgres
Date: 2005-02-22 13:39:47
Message-ID: 1109079587.421b362372ea4@sms.ed.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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')

but this returns a message that the connection failed due to a missing "=" after
the user_name?

Any suggestions?

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Stefan.Ardeleanu 2005-02-22 14:15:41 execute dynamic strings
Previous Message john-paul delaney 2005-02-22 12:44:31 Re: Query combination query.