Newbie Question: (no error string)
From: Elijah O. Alcantara (elijah_at_asti.dost.gov.ph)
Date: 06/18/04
- Next message: Zhivko Duchev: "Re: Newbie Question: (no error string)"
- Previous message: Unknown Sender: "Re: Oracle 10g"
- Next in thread: Zhivko Duchev: "Re: Newbie Question: (no error string)"
- Reply: Zhivko Duchev: "Re: Newbie Question: (no error string)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: dbi-users@perl.org Date: Fri, 18 Jun 2004 14:04:23 +0800
I don't get it, I followed the DBI examples from
http://www.saturn5.com/%7Ejwb/dbi-examples.html and got this error:
$ perl testing.pl
DBI connect('GovPH2','postgres',...) failed: (no error string) at
testing.pl line 7
Database Connection failed!!!: ERROR: Missing '=' after 'GovPH2' in
conninfo at testing.pl line 7.
Here's the short code:
-----
#!/usr/bin/perl
use strict;
use warnings;
use DBI;
my $dbh = DBI->connect('DBI:Pg:GovPH2',
'username',
'password',
) || die "Database Connection failed!!!:
$DBI::errstr";
$dbh->disconnect();
------
- Next message: Zhivko Duchev: "Re: Newbie Question: (no error string)"
- Previous message: Unknown Sender: "Re: Oracle 10g"
- Next in thread: Zhivko Duchev: "Re: Newbie Question: (no error string)"
- Reply: Zhivko Duchev: "Re: Newbie Question: (no error string)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|