node-query/node_modules/mysql2/examples/pass-sha.js

9 lines
318 B
JavaScript
Raw Normal View History

2015-01-28 15:33:44 -05:00
var mysql = require('../index.js').createConnection({
user: 'testuser',
//password: 'testpassword'
passwordSha1: Buffer('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex')
});
mysql.execute("select ?+1 as qqq, ? as rrr, ? as yyy", [1, null, 3], function(err, rows, fields) {
console.log(err, rows, fields);
});