A lightweight MySQL connection pool for Node.js built on top of node-mysql. Version 0.2.2 is the latest stable release, with no newer versions since 2012. Provides basic pooling functionality (create pool, get connection, release) but is unmaintained and lacks modern features like promise support, TypeScript types, or connection limit options. Alternatives like mysql2 or generic-pool are recommended.
npm install mysql-poolNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a connection pool, acquires a connection, runs a query, and releases the connection. Note the mandatory 'mysql' option.
Migrate to a modern pool like mysql2's built-in promise pool.
Always pass the mysql module explicitly: { mysql: require('mysql') }.Wrap in a promise manually or use a library that supports promises.
npm install mysql-pool, then require using correct path.
Use const { createPool } = require('mysql-pool'); then invoke createPool().Ensure getConnection callback receives (err, conn) and conn is used inside callback.