Simple MySQL connection pool library for Node.js, version 0.1.10, last updated in 2014. Provides a basic pool class with configurable size. Intended as personal use and explicitly marked as unstable with breaking changes possible. No longer maintained, no TypeScript definitions, and relies on the deprecated mysql package. Not recommended for new projects; use mysql2 with pooling or better-sqlite3 for modern needs.
npm install lei-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a pool with an optional password environment variable, running a query, and closing the pool with destroy().
Pin to specific version (e.g., 'lei-mysql': '0.1.10') and test thoroughly.
Use mysql2 or modern databases with native pooling.
Use property 'pool' instead of 'connectionLimit'.
Wrap queries in util.promisify() or use a library with promise support.
Always provide a callback to pool.destroy() or use pool.destroy(() => {}).Verify host, port, and network connectivity; ensure MySQL is running.
Check user and password fields; ensure user has remote access if needed.
Ensure pool is created with new MySQLPool(options); check options object.
Manage pool lifecycle; do not use pool after calling destroy.