Nhận máy chủ Node của riêng bạn
 var mysql = require('mysql'); var con = mysql.createConnection({ host: "localhost", user: "myusername", password: "mypassword", database: "mydb" }); con.connect(function(err) { if (err) throw err; /*Delete the "customers" table, but only if it already exist (to avoid errors):*/ var sql = "DROP TABLE IF EXISTS customers"; con.query(sql, function (err, result) { if (err) throw err; console.log(result); }); });

{
trườngCount: 0,
hàng bị ảnh hưởng: 0,
chènId: 0,
trạng thái máy chủ: 2,
số lượng cảnh báo: 1,
tin nhắn: '',
giao thức41: đúng,
hàng đã thay đổi: 0
}