Hi there,

On Tue, 21 Oct 2003, Udlei Nattis wrote:

> Sorry my english...

It'll do  :)

> when i use Apache::DBI and my system stay away for long time,
> the site have problem because connection is down.

:(

> for resolv the problem i add in startup.pl:
> 
> Apache::DBI->connect_on_init('dbi:mysql:dbase', 'root', 'sql',{  
> PrintError => 1, RaiseError => 1, });
> Apache::DBI->setPingTimeOut('dbi:mysql::dbase', 1); # or 0
> $Apache::DBI::DEBUG = 2;
> 
> but problem persist...
> [snip]
> why i have this problem?

I don't know for sure, but your setPingTimeout call looks wrong.

hurricane:~/src/ApacheDBI-0.87$ >>> grep -r setPingTimeOut *
[snip]
eg/startup.pl:#Apache::DBI->setPingTimeOut("dbi:driver:database", $timeout);
[snip]

Are you getting anything about it in the error_log?

73,
Ged.

Reply via email to