Answers for "const pool = mysql.createpool()"

SQL
0

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;
Posted by: Guest on September-14-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language