[Solved] TDengine Error: Unable to resolve FQDN

TDengine Error: Unable to resolve FQDN

Project scenario:

Win10 using Python link tdengine to read the database

Problem description

Problems encountered in the Project:

Unable to resolve FQDN is reported when the code reads the contents of the database

# connect the database of taos
conn = taos.connect(host=ip, user=user, password=pwd, database=db_database)
cursor = conn.cursor()
cursor.execute('select * from sensor_data')

Solution:

In the server, find the contents under the/etc/hosts file, copy them to the local file C:\Windows\System32\drivers\etc\hosts, and rerun the code

Read More: