Skip to content

joeledwards/node-wait-for-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wait for MySQL

Waits for a MySQL connection to become available, optionally running a custom query to determine if the connection is valid.

Installation

npm install --save wait-for-mysql

Usage

Run as a module within another script:

waitForMy = require 'wait-for-mysql'
config =
  username: user
  password: pass
  quiet: true
  query: 'SELECT 1'

waitForMy.wait(config)

Or run stand-alone

wait-for-mysql --username=user --password=pass --quiet

Building

cake build

About

Wait for a MySQL database to become available after startup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published