Skip to content

Commit c538335

Browse files
authored
fix mysql non root user issue (#34) (#35)
Signed-off-by: Mehedi Hasan <[email protected]>
1 parent 99c2327 commit c538335

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/run_read_only.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function wait_for_mysqld_running() {
113113
local mysql="mysql -u ${USER} --port=3306 --password=${PASSWORD} --host=$localhost"
114114

115115
for i in {900..0}; do
116-
out=$($mysql -N -e "select 1;" 2>/dev/null)
116+
out=$(${mysql} -N -e "select 1;" 2>/dev/null)
117117
log "INFO" "Attempt $i: Pinging '$report_host' has returned: '$out'...................................."
118118
if [[ "$out" == "1" ]]; then
119119
break

scripts/run_semi_sync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function wait_for_mysqld_running() {
104104
local mysql="$mysql_header --host=$localhost"
105105

106106
for i in {900..0}; do
107-
out=$(mysql -N -e "select 1;" 2>/dev/null)
107+
out=$(${mysql} -N -e "select 1;" 2>/dev/null)
108108
log "INFO" "Attempt $i: Pinging '$report_host' has returned: '$out'...................................."
109109
if [[ "$out" == "1" ]]; then
110110
break

0 commit comments

Comments
 (0)