[COOK-2837] Tweaked my.cnf to avoid problem with mysql 5.6+

https://tickets.opscode.com/browse/COOK-2837

The variable `table_cache` is not recognized anymore by MySQL under 5.6+. Simple fix is to conditionally remove the `table_cache` variable when MySQL version is 5.6+.