matthewbaggett / wait-for-mysql
Installs: 12 872
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Language:Shell
README
Package that provides a shell script to wait for mysql/mariadb and postgres to be ready.
Does not actually contain any PHP.
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: