I pushed commit 250c7125613fc0fc26b72f68a7d0bd63a4a1b430 to master that adds 3 attempts of mysql ping if autreconnect is set. Feedback about solving or not the issue is appreciated!
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/406#issuecomment-162668979