Server IP : 104.21.38.3 / Your IP : 172.69.176.34 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/ndb_rpl/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 let $rpl_skip_start_slave= 1; # Don't start slave automatically --source include/master-slave.inc # On master use NDB as storage engine. SET default_storage_engine=ndb; --echo --echo === NDB -> MYISAM === --echo --source include/rpl_connection_slave.inc # 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; # Reconfigure slave to use MyISAM as default engine SET @old_slave_storage_engine=@@global.default_storage_engine; SET @@global.default_storage_engine=myisam; --source include/start_slave.inc --source suite/ndb_rpl/t/ndb_rpl_2multi_basic.inc --source include/rpl_connection_slave.inc --source include/stop_slave.inc --echo --echo === NDB -> INNODB === --echo # Reconfigure slave to use Innodb as default engine --source include/rpl_connection_slave.inc alter table mysql.ndb_apply_status engine=innodb; SET @@global.default_storage_engine=innodb; --source include/start_slave.inc --source suite/ndb_rpl/t/ndb_rpl_2multi_basic.inc --source include/rpl_connection_slave.inc --source include/stop_slave.inc # Cleanup --source include/rpl_connection_slave.inc drop table mysql.ndb_apply_status; set @@global.slave_exec_mode= @old_slave_exec_mode; SET @@global.default_storage_engine=@old_slave_storage_engine;