have_multi_ndb.inc 980 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
# Setup connections to both MySQL Servers connected to the cluster
connect (server1,127.0.0.1,root,,test,$MASTER_MYPORT,);
connect (server2,127.0.0.1,root,,test,$MASTER_MYPORT1,);

# Check that server1 has NDB  support
connection server1;
disable_query_log;
--disable_warnings
drop table if exists t1, t2;
--enable_warnings
flush tables;
brian@zim.(none)'s avatar
brian@zim.(none) committed
12 13
--require r/true.require
select support = 'Enabled' as `TRUE` from information_schema.engines where engine = 'ndbcluster';
14 15 16 17 18 19 20 21 22
enable_query_log;

# Check that server2 has NDB support
connection server2;
disable_query_log;
--disable_warnings
drop table if exists t1, t2;
--enable_warnings
flush tables;
brian@zim.(none)'s avatar
brian@zim.(none) committed
23 24
--require r/true.require
select support = 'Enabled' as `TRUE` from information_schema.engines where engine = 'ndbcluster';
25 26
enable_query_log;

27 28 29 30
# Check should be here as well...
# # Check that second master mysqld has come out of redonly mode
# --source include/ndb_not_readonly.inc

31 32
# Set the default connection to 'server1'
connection server1;