1
# Setup connections to both MySQL Servers connected to the cluster
2
connect (server1,127.0.0.1,root,,test,$MASTER_MYPORT,);
3
connect (server2,127.0.0.1,root,,test,$MASTER_MYPORT1,);
5
# Check that server1 has NDB support
7
let $engines_table= query_get_value(SHOW TABLES FROM information_schema LIKE 'ENGINES', Tables_in_information_schema (ENGINES), 1);
9
if (`SELECT 1 FROM dual WHERE '$engines_table' = 'engines'`)
11
--require r/true.require
12
SELECT (support = 'YES' or support = 'DEFAULT' or support = 'ENABLED') as `TRUE` FROM information_schema.engines WHERE engine = 'ndbcluster';
13
--source include/ndb_not_readonly.inc
17
# Check that server2 has NDB support
19
let $engines_table= query_get_value(SHOW TABLES FROM information_schema LIKE 'ENGINES', Tables_in_information_schema (ENGINES), 1);
21
if (`SELECT 1 FROM dual WHERE '$engines_table' = 'engines'`)
23
--require r/true.require
24
SELECT (support = 'YES' or support = 'DEFAULT' or support = 'ENABLED') as `TRUE` FROM information_schema.engines WHERE engine = 'ndbcluster';
25
--source include/ndb_not_readonly.inc
35
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
45
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
51
# Set the default connection