MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/cwd/usr/share/mysql-test/include/have_ndb.inc
#
# Check if cluster is available by selecting from is.engines
# if an error about no such table occurs bail out
#

disable_result_log;
disable_query_log;

--error 0, 1109
select @have_ndb:= count(*) from information_schema.engines where engine='ndbcluster' and support in ('YES', 'DEFAULT', 'ENABLED');


if ($mysql_errno){
  # For backward compatibility, implement old fashioned way
  # to check here ie. use SHOW VARIABLES LIKE "have_ndb"
  die Can not determine if server supports ndb without is.engines table;
}


if (!`select @have_ndb`){
  skip Need ndb engine;
}

enable_query_log;
enable_result_log;

--let NDB_BACKUPS=$NDB_BACKUP_DIR/BACKUP/BACKUP