A Promise-based MySQL client wrapper around the 'mysql' npm package, using Bluebird for promise functionality. Version 1.2.5 is the latest stable release; the package appears to be sporadically maintained with infrequent updates. It differentiates itself by providing a simple drop-in Promise interface for the callback-based 'mysql' package, but lacks TypeScript definitions and has known issues with connection pooling and modern Node.js versions. Consider using 'mysql2' with promise support instead.
npm install mysql-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows initialization with environment variables and an async query with error handling.
Use 'mysql2' directly with its built-in promise support instead.
Always call require('mysql-plugin').init({...}) at startup.Use a raw string for single SQL statements only.
Call require('mysql-plugin').init({...}) at application startup.Upgrade to mysql2 or use a default auth plugin in MySQL: ALTER USER 'user'@'host' IDENTIFIED WITH mysql_native_password BY 'password';