![]() |
MySQL database timeout
I've had a few users experiencing SQL errors because the connection with the database has been lost. Generally, it seems these sites have rather small settings for the mysql wait_timeout setting (a few tens of seconds rather than the more typical value in the tens of thousands of seconds) and the problem usually occurs after completing a slow process like a large file download.
Is there a simple way inside VB to detect and re-establish the database connection if it has timed out? Is there any reason why a site would configure MySQL to have a short timeout? |
IMO, The timeout should be about 180 seconds. Why anyone would set it to thousands is beyond me - that means you can have dead connections just sitting there (using up resources) for many hours.
|
All times are GMT. The time now is 09:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|