This commit is contained in:
wangwei01 2019-06-13 20:43:10 +08:00
parent b438887aa2
commit f21d04de3c

View File

@ -60,7 +60,7 @@ def getRedis():
def readMysqlData(rushtime): def readMysqlData(rushtime):
mysql_conf = json.loads(open(CONFIG_DIR + '/rankserver.redis.cluster.json', 'r').read()) mysql_conf = json.loads(open(CONFIG_DIR + '/rankserver.mysql.cluster.json', 'r').read())
array = [] array = []
for conf in mysql_conf: for conf in mysql_conf:
conn = pymysql.connect(host = conf['host'], conn = pymysql.connect(host = conf['host'],