Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: DBI Timeout and Retry on Connect

by maverick (Curate)
on Mar 14, 2002 at 23:29 UTC ( #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
Node Status?
node history
Node Type: note [id://151860]
help
Chatterbox?
[Discipulus]: uh uh.. scent of gods..
[Discipulus]: finally authors of Python to Perl answers will be borged, banned, fried and eaten .. ;=)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2018-06-22 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (122 votes). Check out past polls.

    Notices?