Attempt to tune mysql settings.