uOn Tue, 1 Apr 2003, Dan Swanson wrote:

> I am getting the following error when trying to connect locally to a Postgres 
> database on Red Hat Linux 8. I have confirmed the database "testdb" exists and I can 
> query it using an sql program. Below is three lines of code. I have used similar 
> code to connect to an Informix database. Has anyone seen this error before and what 
> does this error mean?
> 

PEBKAC :)

> DBI->connect(testdb) failed: missing "=" after "testdb" in connection info string
> 
> use DBI;
> my $data_source="DBI:Pg:testdb";
> my $dbh = DBI->connect($data_source,$user,$password);
>

$data_source = "dbi:Pg:dbname=testdb";


Later,

Rudy

Reply via email to