This commit is contained in:
aozhiwei 2020-10-27 11:59:00 +08:00
parent d86c55c962
commit 753f7e917a

View File

@ -121,9 +121,11 @@ def main():
db_rule_conf = json.loads(open(CONFIG_DIR + 'common/mysql_rule.json', 'r').read())
redis_rule_conf = json.loads(open(CONFIG_DIR + 'common/redis_rule.json', 'r').read())
exportRedis(context, redis_conf, redis_rule_conf)
exportMysql(context, db_conf, db_rule_conf)
#exportMysql(context, db_conf, db_rule_conf)
if __name__ == "__main__":
context['channel'] = sys.argv[1]
context['dbname_prefix'] = sys.argv[2]
#context['channel'] = sys.argv[1]
#context['dbname_prefix'] = sys.argv[2]
context['channel'] = '0'
context['dbname_prefix'] = 'gamedb2004'
main()