通过Python语言连接实例 本章节介绍了通过Python语言连接GeminiDB Influx实例的方法。 前提条件 已安装InfluxDB的Python客户端。 使用非SSL方式连接实例的示例代码 from influxdb import InfluxDBClient client InfluxDBClient(hostIP, port, username, password, sslFalse) client.getlistdatabase() 说明 上述host,port,username,password请以实际值为准。 使用SSL方式连接实例的示例代码 from influxdb import InfluxDBClient client InfluxDBClient(hostIP, port, username, password, sslTrue) client.getlistdatabase() 说明 host,port,username,password请以实际值为准。 ssl的值必须设置为True。 如果不设置ssl,或者ssl设置为False,则会报如下错误: InfluxDBClientError: 400: Client sent an HTTP request to an HTTPS server.