Skip to content

Commit

Permalink
fix mysql non root user issue (#34) (#35)
Browse files Browse the repository at this point in the history
Signed-off-by: Mehedi Hasan <[email protected]>
  • Loading branch information
heheh13 authored Nov 29, 2023
1 parent 99c2327 commit c538335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/run_read_only.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_semi_sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c538335

Please sign in to comment.