A Node.js utility that polls a MySQL server until a connection is available, with optional custom query validation. Version 1.0.0 is the current stable release; no further updates have been published since its initial release. It supports both programmatic use and CLI invocation, but has no active maintenance or release cadence. Unlike more modern tools (e.g., wait-on, docker-compose healthchecks), this package is minimal, single-purpose, and does not support ESM or TypeScript natively.
npm install wait-for-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Waits for MySQL to accept connections, then runs a validation query.
Consider using a more maintained alternative like wait-on or a simple loop with mysql2.
Switch to mysql2 directly and implement your own polling.
Use npx or run via node_modules/.bin/wait-for-mysql.
Run 'npm install mysql' alongside wait-for-mysql.
Use 'import { wait } from 'wait-for-mysql'' or use CommonJS require().Ensure MySQL is started and config host/port match your server.
No dependency data recorded yet.