2005-03-07 10:21:38 +01:00
|
|
|
# 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;
|
2006-09-19 22:58:12 +02:00
|
|
|
--require r/true.require
|
2007-06-09 13:05:43 +02:00
|
|
|
select (support = 'YES' or support = 'DEFAULT') as `TRUE` from information_schema.engines where engine = 'ndbcluster';
|
2007-06-18 15:36:10 +02:00
|
|
|
--source include/ndb_not_readonly.inc
|
2005-03-07 10:21:38 +01:00
|
|
|
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;
|
2006-09-19 22:58:12 +02:00
|
|
|
--require r/true.require
|
2007-06-09 13:05:43 +02:00
|
|
|
select (support = 'YES' or support = 'DEFAULT') as `TRUE` from information_schema.engines where engine = 'ndbcluster';
|
2007-06-18 15:36:10 +02:00
|
|
|
--source include/ndb_not_readonly.inc
|
2005-03-07 10:21:38 +01:00
|
|
|
enable_query_log;
|
|
|
|
|
|
|
|
# Set the default connection to 'server1'
|
|
|
|
connection server1;
|