From 753f7e917a7c3ff15ec9108a4f4a6d104311da5b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 27 Oct 2020 11:59:00 +0800 Subject: [PATCH] 1 --- tools/migratedb/migratedb.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/migratedb/migratedb.py b/tools/migratedb/migratedb.py index 402b176..44f0943 100644 --- a/tools/migratedb/migratedb.py +++ b/tools/migratedb/migratedb.py @@ -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()