MySQL connection pool using round-robin distribution for node-mysql. This package (v0.0.9) provides a simple pool implementation that distributes connections in a round-robin fashion. It is a very early-stage package with minimal features and no active maintenance. Compared to more robust solutions like mysql2 or generic-pool, this package lacks advanced pooling features, error handling, and performance optimizations.
npm install mysqlpoolNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a pool, connects a MySQL client, performs a query, and releases the connection back to the pool.
Migrate to mysql2 or another actively maintained connection pool.
Implement manual error handling and reconnect logic.
First create a connection via mysql.createConnection(), then pass to pool.connect().
Use import mysqlPool from 'mysqlpool' or const mysqlPool = require('mysqlpool').defaultRun: npm install mysql