in reply to DBI Timeout and Retry on Connect

check the DBD:: module for your particular database...mysql has one and it's specified like this:
dbi:mysql:database=test;host=127.0.0.1;mysql_connect_timeout=2
inside the dsn param to connect.

/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"

Replies are listed 'Best First'.
Re: Re: DBI Timeout and Retry on Connect
by ehdonhon (Curate) on Mar 14, 2002 at 23:38 UTC

    Thanks. I was kind of afraid that might be the case. I'm using DBD::Pg, so I guess I'm going to be stuck trying the alarm().