connect.js 240 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
const taos = require("td2.0-connector");

var conn = taos.connect({
  host: "localhost",
  port: 6030,
  user: "root",
  password: "taosdata",
});
conn.close();

// run with: node connect.js
// output:
// Successfully connected to TDengine