Hi

I couldn't connect to the database. Following message is coming. Please help me in 
this regard.

use strict;
use warnings;
use DBI;

my $dbh = DBI->connect('dbi:Pg:testdb','postgres','postgres') 
or die "Cannot connect to testdb\n";

exit;

Output

DBI->connect(testdb) failed: ERROR: Missing '=' after 'testdb' in conninfo
 at chkdbi.pl line 5
Cannot connect to testdb


Thanks
Anish

Reply via email to