TDengine/docs-examples/python/connect_native_reference.py

12 lines
563 B
Python
Raw Normal View History

2022-04-25 12:17:31 +00:00
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()