Could be a way to check also the connection driver used (MySQL in this case) and the error number instead?