Registry / database / express-mysql-client

express-mysql-client

JSON →
library1.0.0jsnpmunverified

Express MySQL Client is a fork of Node MySQL Admin providing a web-based MySQL management interface for Express and Koa applications, similar to phpMyAdmin. Current version 1.0.0 (last updated 2015) is in maintenance mode with no recent releases. It supports basic database operations (create, delete, browse tables/records), server monitoring (CPU, memory), and direct SQL queries. Key differentiators include optional IP-level access control and customizable URL prefix. Does not support Windows. Requires running MySQL server and Express middleware integration. Alternative modern tools include phpMyAdmin or Adminer.

npm install express-mysql-client
INSTALL
IMPORT
SIG · EXPRESS-MYSQL-CLIE
E
express-mysql-client
databasejavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
var mysqlAdmin = require('express-mysql-client');
import mysqlAdmin from 'express-mysql-client';
Package is CommonJS-only and does not support ESM imports.
default
app.use(mysqlAdmin(app));
app.use(mysqlAdmin());
Must pass the Express app instance as argument. Failing to do so causes middleware to not work.

Sets up an Express server with the MySQL admin middleware at /myadmin endpoint.

var express = require('express'); var mysqlAdmin = require('express-mysql-client'); var app = express(); app.use(mysqlAdmin(app)); app.listen(3000, function() { console.log('Express MySQL Client running on http://localhost:3000/myadmin'); });
Debug
Known issues
gotchaPackage does NOT support Windows. Will fail to start on Windows systems.
fix
Use a Linux or macOS environment, or Docker.
affects: >=0.0.0
deprecatedThe original nodemysql and Node MySQL Admin are unmaintained. This fork has not been updated since 2015.
fix
Consider using modern alternatives like phpMyAdmin or Adminer.
affects: >=0.0.0
gotchaMust pass the instantiated Express app to the middleware function. Omitting argument causes silent failure.
fix
Ensure you call mysqlAdmin(app) with the app instance.
affects: >=0.0.0
gotchaKoa setup is non-trivial and requires manual routing and disabling Koa response handling.
fix
See README Koa example; must set this.respond = false and use expressApp(req, res).
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'express-mysql-client'
Package not installed or npm install failed due to Windows incompatibility.
fix
Ensure you are on Linux/macOS and run 'npm install express-mysql-client'.
TypeError: mysqlAdmin is not a function
Incorrect import style (trying to import default in ESM way).
fix
Use require('express-mysql-client') instead of import.
Error: Cannot find module 'mysql'
MySQL driver not installed as dependency.
fix
Run 'npm install mysql' separately.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
expressrequiredRequired as peer dependency for middleware integration
mysqlrequiredUsed for MySQL database connection and queries
Agent activity
9 hits · last 30 days
node
8
Resources
express-mysql-client — npm install express-mysql-client · libregistry