PHP MySQL set Connection Timeout

The connect_timeout parameter is only valid at connection time. It’s useful to check if your DB server is reachable in 20 seconds or so. Once connected the specified timeout is no longer valid.

I don’t find any query timeout parameter on official mysql manual page: so I don’t think this is possibile.

Browse More Popular Posts

Leave a Comment