add support for MySQL compressed and encrypted connections

Here is the pull request to merge to enable these two options.