1 # In general is should be equivalent to run 2 connections to
2 # different servers and 2 connections to th same server...
3 # So in general we should be able to run "multi tests" also on embedded
4 -- let have_embedded=`select version() like '%embedded%'`
7 # Setup 2 connections used in multi tests
8 connect (server1,localhost,root,,
test);
9 connect (server2,localhost,root,,
test);
13 # Setup connections to both MySQL Servers connected to the cluster
14 connect (server1,127.0.0.1,root,,
test,$MASTER_MYPORT,);
15 connect (server2,127.0.0.1,root,,
test,$MASTER_MYPORT1,);
18 # Check that server1 has NDB support
20 let $engines_table= query_get_value(SHOW TABLES FROM information_schema LIKE
'ENGINES', Tables_in_information_schema (ENGINES), 1);
22 if (`SELECT 1 FROM dual WHERE
'$engines_table' =
'engines'`)
24 --require r/
true.require
25 SELECT (support =
'YES' or support =
'DEFAULT' or support =
'ENABLED') as `TRUE` FROM information_schema.engines WHERE engine = 'ndbcluster';
31 # Check that server2 has NDB support
33 let $engines_table= query_get_value(SHOW TABLES FROM information_schema LIKE
'ENGINES', Tables_in_information_schema (ENGINES), 1);
35 if (`SELECT 1 FROM dual WHERE
'$engines_table' =
'engines'`)
37 --require r/
true.require
38 SELECT (support =
'YES' or support =
'DEFAULT' or support =
'ENABLED') as `TRUE` FROM information_schema.engines WHERE engine = 'ndbcluster';
49 drop
table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
61 drop
table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
68 # Set the default connection
71 --let NDB_BACKUPS=$NDB_BACKUP_DIR/BACKUP/BACKUP