Improve error messages of mysql modules when connection fails