matthewbaggett / wait-for-mysql
v1.5
2024-04-18 21:40 UTC
README
提供等待mysql/mariadb和postgres准备就绪的shell脚本的包。
实际上不包含任何PHP。
使用方法
export MYSQL_HOST=localhost export MYSQL_PORT=3306 vendor/bin/wait-for-mysql
或使用DSN
export MYSQL_DSN=mysql://user:password@hostname:port/database
vendor/bin/wait-for-mysql
MySQL/MariaDB版本
Postgres版本
还有一个Postgres版本,即wait-for-postgres
,其使用方法和环境变量与上述类似。
MongoDB版本
还有一个MongoDB版本
Redis版本
还有一个Redis版本
DynamoDB版本
还有一个DynamoDB版本