Commit 749a0c2d authored by 张彦钊's avatar 张彦钊

change con_sql argument

parent 126a86ed
......@@ -10,7 +10,7 @@ import redis
# 从Tidb数据库的表里获取数据,并转化成df格式
def con_sql(sql):
db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_test')
db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_test',client_flag=1)
cursor = db.cursor()
cursor.execute(sql)
result = cursor.fetchall()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment