Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

const pool = mysql.createpool()

// Load module
var mysql = require('mysql');
// Initialize pool
var pool      =    mysql.createPool({
    connectionLimit : 10,
    host     : '127.0.0.1',
    user     : 'root',
    password : 'root',
    database : 'db_name',
    debug    :  false
});    
module.exports = pool;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #const #pool
ADD COMMENT
Topic
Name
9+6 =