matthewbaggett/wait-for-mysql

Installs: 12 872

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:Shell

v1.5 2024-04-18 21:40 UTC

This package is auto-updated.

Last update: 2024-12-18 23:12:23 UTC


README

Package that provides a shell script to wait for mysql/mariadb and postgres to be ready.

Does not actually contain any PHP.

Test

Usage

export MYSQL_HOST=localhost
export MYSQL_PORT=3306
vendor/bin/wait-for-mysql

Or using a DSN:

export MYSQL_DSN=mysql://user:password@hostname:port/database
vendor/bin/wait-for-mysql

MySQL/MariaDB Flavour

Postgres Flavour

There's also a postgres flavour, wait-for-postgres which has similar usage and environment variables as above.

MongoDB Flavour

There's also a mongodb flavour:

Redis Flavour

There's also a redis flavour:

DynamoDB Flavour

There's also a dynamodb flavour: