This commit is contained in:
aozhiwei 2020-11-30 13:47:56 +08:00
parent 70c556362e
commit 05decf5810

View File

@ -105,6 +105,7 @@ def fetchEvent():
global db_idx_hash
mysql_cluster_conf = json.loads(open(CONFIG_DIR + '/mailsender.mysql.cluster.json', 'r').read())
for conf in mysql_cluster_conf:
print(conf)
conn = pymysql.connect(host = conf['host'],
port = conf['port'],
user = conf['user'],