Server IP : 49.212.180.16 / Your IP : 3.128.188.69 Web Server : Apache System : FreeBSD www2606.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 User : utannto ( 1076) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/rs/mysql/5.1/mysql-test/include/ |
Upload File : |
# 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; let $engines_table= query_get_value(SHOW TABLES FROM information_schema LIKE 'ENGINES', Tables_in_information_schema (ENGINES), 1); disable_query_log; if (`SELECT 1 FROM dual WHERE '$engines_table' = 'engines'`) { --require r/true.require SELECT (support = 'YES' or support = 'DEFAULT' or support = 'ENABLED') as `TRUE` FROM information_schema.engines WHERE engine = 'ndbcluster'; --source include/ndb_not_readonly.inc } enable_query_log; # Check that server2 has NDB support connection server2; let $engines_table= query_get_value(SHOW TABLES FROM information_schema LIKE 'ENGINES', Tables_in_information_schema (ENGINES), 1); disable_query_log; if (`SELECT 1 FROM dual WHERE '$engines_table' = 'engines'`) { --require r/true.require SELECT (support = 'YES' or support = 'DEFAULT' or support = 'ENABLED') as `TRUE` FROM information_schema.engines WHERE engine = 'ndbcluster'; --source include/ndb_not_readonly.inc } enable_query_log; # cleanup connection server1; disable_query_log; disable_warnings; --error 0,1051 drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10; flush tables; flush status; enable_warnings; enable_query_log; connection server2; disable_query_log; disable_warnings; --error 0,1051 drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10; flush tables; flush status; enable_warnings; enable_query_log; # Set the default connection connection server1;