COOK-4692: reduce duplication in provider_mysql_client implementations

https://tickets.opscode.com/browse/COOK-4692