CFD-217 : Travis-CI - MySQL has gone away

* Added a connection timeout of 300s
* Set the max_allowed_connections to 250