[Fwd: Re: Newbie Question: (no error string)]

From: Elijah O. Alcantara (elijah_at_asti.dost.gov.ph)
Date: 06/18/04

  • Next message: josh white: "Re: DBD::mysql::dr::imp_data_size unexpectedly"
    To: dbi-users@perl.org
    Date: Fri, 18 Jun 2004 14:45:14 +0800
    
    
    

    
    

    attached mail follows:


    To: duchev@tzv.fal.de
    Date: Fri, 18 Jun 2004 14:44:20 +0800
    
    

    Seems to be working now, with a little warning:

    Name "DBI::Errstr" used only once: possible typo at testing.pl line 11.

    Thanks!
    Elijah A.

    On Fri, 2004-06-18 at 14:23, Zhivko Duchev wrote:
    > On Friday 18 June 2004 08:04, Elijah O. Alcantara wrote:
    > > 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();
    > > ------
    >
    >
    >
    > From DBD::Pg documentation:
    > $dbh = DBI->connect("dbi:Pg:dbname=$dbname;host=$host;port=$port;" .
    > "options=$options;tty=$tty", "$username",
    > "$password");
    >
    > greetings


  • Next message: josh white: "Re: DBD::mysql::dr::imp_data_size unexpectedly"