Server IP : 49.212.180.16 / Your IP : 18.216.141.19 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/suite/rpl_ndb/t/ |
Upload File : |
############################################################# # Author: Rafal Somla # Date: 2006-08-20 # Purpose: Trying to test ability to replicate from cluster # to other engines (innodb, myisam). ############################################################## --source include/have_ndb.inc --source include/have_innodb.inc --source include/have_binlog_format_mixed_or_row.inc --source include/master-slave.inc # On master use NDB as storage engine. connection master; SET storage_engine=ndb; --echo --echo === NDB -> MYISAM === --echo connection slave; # Remove any old ndb_apply_status from slaves datadir let $datadir= `SELECT @@datadir`; --error 0,1 remove_file $datadir/mysql/ndb_apply_status.frm; --error 0,1 remove_file $datadir/mysql/ndb_apply_status.ndb; set @old_slave_exec_mode= @@global.slave_exec_mode; set @@global.slave_exec_mode= 'IDEMPOTENT'; CREATE TABLE mysql.ndb_apply_status ( server_id INT UNSIGNED NOT NULL, epoch BIGINT UNSIGNED NOT NULL, log_name VARCHAR(255) BINARY NOT NULL, start_pos BIGINT UNSIGNED NOT NULL, end_pos BIGINT UNSIGNED NOT NULL, PRIMARY KEY USING HASH (server_id)) ENGINE=MYISAM; SET storage_engine=myisam; --source extra/rpl_tests/rpl_ndb_2multi_basic.test --echo --echo === NDB -> INNODB === --echo connection slave; alter table mysql.ndb_apply_status engine=innodb; SET storage_engine=innodb; --source extra/rpl_tests/rpl_ndb_2multi_basic.test connection slave; drop table mysql.ndb_apply_status; set @@global.slave_exec_mode= @old_slave_exec_mode; --source include/rpl_end.inc