node-query/node_modules/mysql2/ttt.js

18 lines
347 B
JavaScript
Raw Normal View History

var fs = require('fs');
var mysql = require('./index.js');
var conn = mysql.createConnection({
user: 'root',
password: '',
database: 'test',
host: '127.0.0.1',
port: '3307',
debug: true,
compress: 1,
});
setTimeout(function() {
conn.query('select * from mil limit 1000', function(err, res) {
console.log(res);
});
}, 10);