Check mysql connection on startup

milosh

Active member
Joined
May 11, 2011
Messages
33
Programming Experience
1-3
Hi all.

I'm developing app which use mySQL as backend.
Now I set in connection string connection timeout=30s.
That mean that app will try to connect to mysql in 30 seconds.
After that if not connected I get error message Any of specified mysql hosts...
But I think that is not exactly 30s.
Sometimes message goes before that time...

Did someone use command timeout? What is default command timeout?
 
But I think that is not exactly 30s.
Sometimes message goes before that time...
I'd expect a connection failure because of networking problems (dns lookup failure) to happen a lot faster than 30s
Did someone use command timeout? What is default command timeout?
This sort of thing can be answer by the documentation surely?
 
Back
Top