MySQL running on host.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user