{"library":"mysql-wait","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.1.2","tags":["javascript","mysql","waiter"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mysql-wait","imports":["import wait from 'mysql-wait'","const wait = require('mysql-wait')","wait({ host: 'localhost', port: 3306, user: 'root', password: 'secret', timeout: 30000 })"]},{"cmd":"yarn add mysql-wait","imports":[]},{"cmd":"pnpm add mysql-wait","imports":[]}],"homepage":"https://github.com/JoshWillik/mysql-wait#readme","github":"https://github.com/JoshWillik/mysql-wait","docs":null,"changelog":null,"pypi":null,"npm":"mysql-wait","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}