mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-24 05:15:02 +00:00
changed test query from sleect-1 to show-status
This commit is contained in:
@@ -2397,7 +2397,7 @@ check_mysql () {
|
||||
|
||||
# Now that we have the cmd line opts, check that we can actually
|
||||
# connect to MySQL.
|
||||
[ -n "$(mysql $EXT_ARGV -e 'SELECT 1')" ] \
|
||||
[ -n "$(mysql $EXT_ARGV -e 'SHOW STATUS')" ] \
|
||||
|| die "Cannot connect to MySQL. Check that MySQL is running and that the options after -- are correct."
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user