Server IP : 104.21.38.3 / Your IP : 172.70.188.64 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/rpl/t/ |
Upload File : |
# ************************************************************** # wl8307 : Check default_row_format functionality by cross # Replication Master (M) 5.7 and Slave (S) 5.6. But the # problem is that MTR does not support cross version. # Hence this testcase assumes slave version is 5.6 by # setting the Default_row_format=compact,which is same # in mysql-5.6. # case 1 : The main aim of this testcase is to check the DDL # failure on slave side, when user try to create a table # with index column size is greater than 767 bytes on # master which will (DDL) fail on slave side. # Master (M) : *.opt file no need to set as default is # row_format=Dynamic.(mysql-5.7). # Slave (S) : *.opt file will be set with default # row_format=Compact (mysql-5.6). # ************************************************************** --source include/have_innodb.inc --source include/not_group_replication_plugin.inc --source include/master-slave.inc # This test should not run with GTID=on --source include/not_gtid_enabled.inc # Set expected error nos on slave side connection slave; stop slave; SET GLOBAL SQL_SLAVE_SKIP_COUNTER=4; start slave; connection master; USE test; # Check Dynamic (default) SELECT @@innodb_default_row_format; # Create Index prefix greater than 767 bytes CREATE TABLE tab(a INT PRIMARY KEY, b VARCHAR(5000),KEY idx1(b(3070))) ENGINE= InnoDB; # Insert a record INSERT INTO tab(a,b) VALUES(1,'Check with max prefix'); # Connect to slave --source include/sync_slave_sql_with_master.inc # Check Compact (default) SELECT @@innodb_default_row_format; # Check DDL should fail on slave --error ER_NO_SUCH_TABLE SHOW CREATE TABLE tab; # Cleanup connection master; DROP TABLE tab; # Before closing sync slave --source include/sync_slave_sql_with_master.inc --source include/rpl_end.inc