Skip to content

Commit

Permalink
Use mysqladmin status instead of ping to check server
Browse files Browse the repository at this point in the history
The ping does return 0 even in case it can not connect to the server.

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jan 4, 2014
1 parent 99fac9f commit 9ec3c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/maintenance/mysql-tester
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ -z "$1" -o -z "$2" ] ; then
fi

# Test Debian maintenance user
if ! ssh demo-$1 /usr/bin/mysqladmin ping ; then
if ! ssh demo-$1 /usr/bin/mysqladmin status ; then
exit 1
fi

Expand Down

0 comments on commit 9ec3c59

Please sign in to comment.