Doug Silver wrote:
> On Wed, 20 Mar 2002, Stas Bekman wrote:
> 
> 
>>Doug Silver wrote:
>>
>>>I don't know if this is a PostgreSQL oddity, but in the startup.pl file, I
>>>can have the entry like so and it seems to start fine:
>>>
>>>Apache::DBI->connect_on_init
>>>   ("dbi:pg(PrintError=>1,AutoCommit=>0):", "", )
>>>   or die "Cannot connect to database: $DBI::errstr";
>>>
>>>The error log shows a couple of 
>>>"Apache::DBI PerlChildInitHandler" entries, so I think it's working, but
>>>would like to confirm it.
>>>
>>Yes
>>
>>see http://perl.apache.org/guide/databases.html#Debugging_Apache_DBI
>>
>>
>>
> 
> Actually, that's what I had it on:
> 
> [Wed Mar 20 10:45:16 2002] [notice] Apache/1.3.22 (Unix) mod_perl/1.26
> PHP/4.1.0 mod_ssl/2.8.5 OpenSSL/0.9.6a configured -- resuming normal
> operations
> 30460 Apache::DBI             PerlChildInitHandler 
> 30461 Apache::DBI             PerlChildInitHandler 
> 30462 Apache::DBI             PerlChildInitHandler 
> 30463 Apache::DBI             PerlChildInitHandler 
> 30464 Apache::DBI             PerlChildInitHandler 
> [Wed Mar 20 10:45:16 2002] [notice] Accept mutex: flock (Default: flock)
> 
>>From my startup.pl:
> # choose debug output: 0 = off, 1 = quiet, 2 = chatty
> $Apache::DBI::DEBUG = 2;
> 
> I guess I just wanted some confirmation on how the DBI was able to
> establish the connection without a database or username specified.
> 
> Guess it's working, which is the main issue.

Do you check whether connect() has succeeded per DBI documentation?



_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

Reply via email to