Answers for "Create the connection pool mysql2"

SQL
0

Create the connection pool mysql2

// get the client
const mysql = require('mysql2');

// Create the connection pool. The pool-specific settings are the defaults
const pool = mysql.createPool({
  host: 'localhost',
  user: 'root',
  database: 'test',
  waitForConnections: true,
  connectionLimit: 10,
  queueLimit: 0
});
Posted by: Guest on March-13-2022

Code answers related to "SQL"

Browse Popular Code Answers by Language