Hi,
I have web2py application which talks with MYSQL and i have my db connection strings in db.py module. Sometime the web2py server is running without any issues, but mysql goes offline now and then. So, I am getting the ticket generated saying that "Failure to connect, tried 5 times: Traceback (most recent call last): ".
All I wanted to do is to check if this error comes out (that's mysql is not running) I need to redirect the user to something like 404/database error page. Can someone tell me where and how can I detect this database connectivity failure and show some meaningful error message.
Thanks,
Raj Chinna