diff --git a/scripts/run_read_only.sh b/scripts/run_read_only.sh index 675acd8..39ececa 100755 --- a/scripts/run_read_only.sh +++ b/scripts/run_read_only.sh @@ -113,7 +113,7 @@ function wait_for_mysqld_running() { local mysql="mysql -u ${USER} --port=3306 --password=${PASSWORD} --host=$localhost" for i in {900..0}; do - out=$($mysql -N -e "select 1;" 2>/dev/null) + out=$(${mysql} -N -e "select 1;" 2>/dev/null) log "INFO" "Attempt $i: Pinging '$report_host' has returned: '$out'...................................." if [[ "$out" == "1" ]]; then break diff --git a/scripts/run_semi_sync.sh b/scripts/run_semi_sync.sh index 8bc73f8..84ae991 100755 --- a/scripts/run_semi_sync.sh +++ b/scripts/run_semi_sync.sh @@ -104,7 +104,7 @@ function wait_for_mysqld_running() { local mysql="$mysql_header --host=$localhost" for i in {900..0}; do - out=$(mysql -N -e "select 1;" 2>/dev/null) + out=$(${mysql} -N -e "select 1;" 2>/dev/null) log "INFO" "Attempt $i: Pinging '$report_host' has returned: '$out'...................................." if [[ "$out" == "1" ]]; then break