def setVariable(instance_name, variable, value): cnf = getCNF(instance_name) if path.exists(cnf): mc = MySQLDConfig(cnf) cur = connMySQLd(mc) cur.execute("set global %s = %s" % (variable, value)) mc.set_var(variable, value) mc.save()
def setVariable(name, variable, value): cnf = getCNF(name) if os.path.exists(cnf): mc = MySQLDConfig(cnf) mc.set_var(variable, value) mc.save()