📜  const pool = mysql.createpool() - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:58.579000             🧑  作者: Mango

代码示例1
// 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;