Improve error messages of mysql modules when connection fails

Mysql connections can fail for a variety of reasons, not just bad credentials. In my case, the database didn't exist. This patch displays the actual mysql error message to aid debugging.