MySQL running on host.

This commit is contained in:
mguschin
2026-02-03 21:03:20 +03:00
parent 6b54303482
commit 94271ddfb3
3 changed files with 5 additions and 10 deletions

View File

@@ -24,9 +24,10 @@ if [ -n "$MYSQL_HOST" ]; then
if [ $counter -eq $MYSQL_TIMEOUT ]; then
echo "ERROR: MySQL at $MYSQL_HOST:$MYSQL_PORT did not become ready within ${MYSQL_TIMEOUT} seconds"
echo "Please check that:"
echo " - MySQL container is running"
echo " - Both containers are on the same Docker network"
echo " - MySQL server is running on the host"
echo " - MySQL is listening on port $MYSQL_PORT"
echo " - MYSQL_HOST environment variable is correctly set"
echo " - Firewall allows connection to MySQL port"
exit 1
fi