MySQL: Relax expectations during connection failure

Error code and message differs between environments (MySQL versions?)