Your best solution would be to switch to internal MySQL functions since the MySQL Module is pretty old now and some features might not be supported.
(https://wiki.multitheftauto.com/wiki/DbConnect)
Besides that, is the MySQL Server running on your own vServer / dedicated server ?
If so, do you have any timeouts configured ?
- Luxy.c