Code for applying MySQL config