Print stack trace to help diagnose MySQL connection problems