text: 
  var mysql  = require('mysql');  
   
  var connection = mysql.createConnection({     
    host     : '192.168.0.186',       
    user     : 'henry',              
    password : '123456',       
    port: '3306',                   
    database: 'ourdb', 
  }); 
   
  connection.connect();
   
  var delSql = 'DELETE FROM sadmin where id=5';
  //删
  connection.query(delSql,function (err, result) {
          if(err){
            console.log('[DELETE ERROR] - ',err.message);
            return;
          }        
   
         console.log('--------------------------DELETE----------------------------');
         console.log('DELETE affectedRows',result.affectedRows);
         console.log('-----------------------------------------------------------------\n\n');  
  });
   
  connection.end();
  