A minuscule wrapper around the popular node-mysql (mysql) package for Node.js. Version 0.1.28 is the latest stable release (last updated 2016-01-03). It provides a simplified API for MySQL connections and query execution, supporting connection pooling, multiple statement execution, and result formatting. Unlike more modern alternatives (e.g., mysql2, knex), mysqlutil is a thin convenience layer, leaving full control to the user. No longer actively maintained.
npm install mysqlutilNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a connection pool, execute a simple query, and log the result.
Consider migrating to mysql2 or knex for long-term support.
Check if `results` is an array of arrays when using multiple statements.
Update callbacks to handle array of result sets.
Use `const mysqlutil = require('mysqlutil');` then `mysqlutil.createPool(...)`.Enable auto-reconnect or increase wait_timeout on MySQL server.