TDengine/docs-examples/python/connect_native_reference.py
2022-04-25 20:17:31 +08:00

11 lines
563 B
Python

import taos
conn: taos.TaosConnection = taos.connect(host="localhost",
user="root",
password="taosdata",
database="test",
port=6030,
config="C:\TDengine\cfg", # for linux the default value is /etc/taos
timezone="Asia/Shanghai" # default your host's timezone
)
conn.close()