mysql-wait

JSON →
library 1.1.2 ·javascript
verified Jun 5, 2026

A promise-based utility to wait for a MySQL database to become available (version 1.1.2). It connects to the specified MySQL host and port, accepting user and password, and resolves once the connection succeeds, or rejects after a configurable timeout. Ideal for scripts that need to ensure the database is up before proceeding. Uses standard `mysql` package underneath. Minimal API: one function with an options object.