Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: DBI Timeout and Retry on Connect

by maverick (Curate)
on Mar 14, 2002 at 23:29 UTC ( [id://151860]=note: print w/replies, xml ) Need Help??


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().

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://151860]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-18 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found