Commit 96c077ee authored by 张彦钊's avatar 张彦钊

recover con_sql argument

parent 3cf289c5
...@@ -10,7 +10,7 @@ import redis ...@@ -10,7 +10,7 @@ import redis
# 从Tidb数据库的表里获取数据,并转化成df格式 # 从Tidb数据库的表里获取数据,并转化成df格式
def con_sql(sql): def con_sql(sql):
db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_test',client_flag=1) db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_test')
cursor = db.cursor() cursor = db.cursor()
cursor.execute(sql) cursor.execute(sql)
result = cursor.fetchall() 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