This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
node-task/node_modules/mysql2/ttt.js

18 lines
347 B
JavaScript
Raw Normal View History

2014-09-24 17:56:53 -04:00
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);