move mysql configuration to a script