Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.141.165.89
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
mysql /
mysql-test /
extra /
rpl_tests /
[ HOME SHELL ]
Name
Size
Permission
Action
check_type.inc
2.29
KB
-rw-r--r--
create_recursive_construct.inc
16.61
KB
-rw-r--r--
create_recursive_construct_stm...
16.48
KB
-rw-r--r--
delayed_slave_wait_on_query.in...
1.59
KB
-rw-r--r--
gtid_disconnect_drop_temporary...
3.11
KB
-rw-r--r--
rpl_EE_err.test
1.03
KB
-rw-r--r--
rpl_auto_increment.test
8.63
KB
-rw-r--r--
rpl_auto_increment_insert_view...
1.37
KB
-rw-r--r--
rpl_auto_increment_invoke_trig...
2.47
KB
-rw-r--r--
rpl_autoinc_func_invokes_trigg...
1.78
KB
-rw-r--r--
rpl_binlog_max_cache_size.test
18.23
KB
-rw-r--r--
rpl_blackhole.test
1.03
KB
-rw-r--r--
rpl_change_master.test
10.46
KB
-rw-r--r--
rpl_change_master_bind.inc
2.23
KB
-rw-r--r--
rpl_charset.test
4.45
KB
-rw-r--r--
rpl_check_gtid.inc
4.87
KB
-rw-r--r--
rpl_commit_after_flush.test
272
B
-rw-r--r--
rpl_conflicts.test
5.45
KB
-rw-r--r--
rpl_crash_safe.inc
4.13
KB
-rw-r--r--
rpl_crash_safe.test
7.61
KB
-rw-r--r--
rpl_create_msr_channels.inc
2.53
KB
-rw-r--r--
rpl_db_stmts_ignored.inc
1.7
KB
-rw-r--r--
rpl_ddl.test
21.62
KB
-rw-r--r--
rpl_deadlock.test
6.05
KB
-rw-r--r--
rpl_delete_no_where.test
523
B
-rw-r--r--
rpl_do_table_filter_insensitiv...
492
B
-rw-r--r--
rpl_do_table_filter_sensitive....
491
B
-rw-r--r--
rpl_drop_create_temp_table.inc
29.79
KB
-rw-r--r--
rpl_drop_create_temp_table.tes...
17.8
KB
-rw-r--r--
rpl_drop_multiple_tables.inc
4
KB
-rw-r--r--
rpl_drop_multiple_tables_in_mu...
1.18
KB
-rw-r--r--
rpl_extra_col_master.test
31.93
KB
-rw-r--r--
rpl_extra_col_slave.test
28.76
KB
-rw-r--r--
rpl_failed_optimize.test
666
B
-rw-r--r--
rpl_filters.test
530
B
-rw-r--r--
rpl_flsh_tbls.test
1.86
KB
-rw-r--r--
rpl_foreign_key.test
1.7
KB
-rw-r--r--
rpl_generate_mts_gap.test
1.6
KB
-rw-r--r--
rpl_generate_mts_gap_with_miss...
3.22
KB
-rw-r--r--
rpl_generate_mts_gap_with_miss...
408
B
-rw-r--r--
rpl_get_master_version_and_clo...
2.88
KB
-rw-r--r--
rpl_gtid_drop_table.inc
1.11
KB
-rw-r--r--
rpl_gtid_mixed_rows_and_stmts_...
3.35
KB
-rw-r--r--
rpl_gtid_mts_relay_log_recover...
4.39
KB
-rw-r--r--
rpl_gtid_temp_table_in_func_or...
3.69
KB
-rw-r--r--
rpl_gtids_restart_slave_io_los...
3.48
KB
-rw-r--r--
rpl_heartbeat_2slaves.inc
4.27
KB
-rw-r--r--
rpl_ignore_super_read_only.tes...
6.19
KB
-rw-r--r--
rpl_ignore_table_filter_insens...
508
B
-rw-r--r--
rpl_ignore_table_filter_sensit...
506
B
-rw-r--r--
rpl_implicit_commit_binlog.tes...
17.22
KB
-rw-r--r--
rpl_innodb.test
4.53
KB
-rw-r--r--
rpl_insert_id.test
15.12
KB
-rw-r--r--
rpl_insert_id_pk.test
2.65
KB
-rw-r--r--
rpl_insert_ignore.test
4.9
KB
-rw-r--r--
rpl_kill_query.inc
4.14
KB
-rw-r--r--
rpl_loaddata.test
8.91
KB
-rw-r--r--
rpl_loaddata_s.inc
896
B
-rw-r--r--
rpl_loadfile.test
1.08
KB
-rw-r--r--
rpl_log.test
3.9
KB
-rw-r--r--
rpl_lower_case_table_names.tes...
4.07
KB
-rw-r--r--
rpl_max_relay_size.test
2.58
KB
-rw-r--r--
rpl_mixing_engines.inc
23.15
KB
-rw-r--r--
rpl_mixing_engines.test
54.43
KB
-rw-r--r--
rpl_mts_crash_safe.inc
5.92
KB
-rw-r--r--
rpl_mts_crash_safe.test
6.74
KB
-rw-r--r--
rpl_mts_execute_partial_trx_in...
1.11
KB
-rw-r--r--
rpl_mts_pending_events.inc
4.91
KB
-rw-r--r--
rpl_mts_relay_log_recovery.tes...
2.93
KB
-rw-r--r--
rpl_mts_transaction_retry.inc
7.9
KB
-rw-r--r--
rpl_multi_query.test
782
B
-rw-r--r--
rpl_multi_source_corrupt_repos...
18.31
KB
-rw-r--r--
rpl_multi_source_generate_mts_...
2.11
KB
-rw-r--r--
rpl_multi_update.test
805
B
-rw-r--r--
rpl_multi_update2.test
1.35
KB
-rw-r--r--
rpl_multi_update3.test
4.52
KB
-rw-r--r--
rpl_not_null.test
10.76
KB
-rw-r--r--
rpl_parallel_ddl.test
5.35
KB
-rw-r--r--
rpl_parallel_load.test
6.1
KB
-rw-r--r--
rpl_parallel_load_innodb.test
7
KB
-rw-r--r--
rpl_parallel_recovery_core.tes...
6.74
KB
-rw-r--r--
rpl_partition.test
7.88
KB
-rw-r--r--
rpl_perfschema_applier_xa_stat...
2.96
KB
-rw-r--r--
rpl_perfschema_order_by.test
3.12
KB
-rw-r--r--
rpl_record_compare.test
2.1
KB
-rw-r--r--
rpl_relayrotate.test
2.68
KB
-rw-r--r--
rpl_replication_observers_exam...
2.61
KB
-rw-r--r--
rpl_reset_slave.test
3.82
KB
-rw-r--r--
rpl_reset_slave_all_thread_saf...
1.2
KB
-rw-r--r--
rpl_rollback_to_savepoint.inc
7.54
KB
-rw-r--r--
rpl_row_001.test
2.68
KB
-rw-r--r--
rpl_row_UUID.test
2.61
KB
-rw-r--r--
rpl_row_basic.test
24.58
KB
-rw-r--r--
rpl_row_blob.test
5.57
KB
-rw-r--r--
rpl_row_empty_imgs.test
5.69
KB
-rw-r--r--
rpl_row_event_max_size.inc
4.05
KB
-rw-r--r--
rpl_row_func003.test
3.13
KB
-rw-r--r--
rpl_row_idempotency.test
8.39
KB
-rw-r--r--
rpl_row_img.test
8.23
KB
-rw-r--r--
rpl_row_img_blobs.test
5.82
KB
-rw-r--r--
rpl_row_img_diff_indexes.test
9.11
KB
-rw-r--r--
rpl_row_sp002.test
5.26
KB
-rw-r--r--
rpl_row_sp003.test
2.02
KB
-rw-r--r--
rpl_row_sp006.test
2.78
KB
-rw-r--r--
rpl_row_sp007.test
1.5
KB
-rw-r--r--
rpl_row_tabledefs.test
7.97
KB
-rw-r--r--
rpl_seconds_behind_master_mts_...
12.04
KB
-rw-r--r--
rpl_seconds_behind_master_mts_...
10.2
KB
-rw-r--r--
rpl_semi_sync_ack_thread.inc
676
B
-rw-r--r--
rpl_semi_sync_after_sync.test
4.82
KB
-rw-r--r--
rpl_semi_sync_deadlock.test
1.46
KB
-rw-r--r--
rpl_semi_sync_group_commit_dea...
1.71
KB
-rw-r--r--
rpl_set_null.test
2.85
KB
-rw-r--r--
rpl_sp.test
17.69
KB
-rw-r--r--
rpl_split_statements.test
17.96
KB
-rw-r--r--
rpl_start_stop_slave.test
5.4
KB
-rw-r--r--
rpl_stm_EE_err2.test
1.5
KB
-rw-r--r--
rpl_stm_create_if_not_exists.t...
6.87
KB
-rw-r--r--
rpl_stop_middle_group.test
5.17
KB
-rw-r--r--
rpl_stop_slave.test
1.56
KB
-rw-r--r--
rpl_stress_test.inc
2.21
KB
-rw-r--r--
rpl_sv_relay_space.test
921
B
-rw-r--r--
rpl_sync_relay_log_info.inc
9.02
KB
-rw-r--r--
rpl_sync_relay_log_info_assert...
3.23
KB
-rw-r--r--
rpl_temp_error.test
623
B
-rw-r--r--
rpl_temporary.test
10.6
KB
-rw-r--r--
rpl_test_framework.inc
2.42
KB
-rw-r--r--
rpl_tmp_table_and_DDL.test
4.8
KB
-rw-r--r--
rpl_trig004.test
1.7
KB
-rw-r--r--
rpl_truncate.test
425
B
-rw-r--r--
rpl_truncate_helper.test
976
B
-rw-r--r--
rpl_trx_boundary_parser.inc
1.59
KB
-rw-r--r--
rpl_trx_boundary_parser_all_st...
7.19
KB
-rw-r--r--
rpl_trx_boundary_parser_one_st...
3.69
KB
-rw-r--r--
rpl_trx_boundary_parser_warnin...
4.51
KB
-rw-r--r--
rpl_variables_stm.test
24.26
KB
-rw-r--r--
rpl_xa_gtid_next.inc
2.46
KB
-rw-r--r--
rpl_xa_mixed_engines.inc
1.89
KB
-rw-r--r--
type_conversions.test
23.7
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : rpl_ddl.test
################# extra/rpl_tests/rpl_ddl.test ######################## # # # DDL statements (sometimes with implicit COMMIT) and other stuff # # executed on the master and it's propagation into the slave. # # # # The variables # # $engine_type -- storage engine to be tested/used for the # # permanent tables within the master # # $temp_engine_type -- storage engine which supports TEMPORARY # # tables <> $engine_type # # $temp_engine_type must point to an all # # time available storage engine # # 2007-02 MySQL 5.1 MyISAM and MEMORY only # # $show_binlog -- print binlog entries # # 0 - no (default) + fits to the file with # # results # # 1 - yes (important for debugging) # # This variable is used within # # include/rpl_stmt_seq.inc. # # $manipulate -- Manipulation of the binary logs # # 0 - do nothing # # 1 - so that the output of SHOW BINLOG # # EVENTS IN <current log> contains only # # commands of the current test sequence # # This is especially useful, if the # # $show_binlog is set to 1 and many # # subtest are executed. # # This variable is used within # # include/rpl_stmt_seq.inc. # # have to be set before sourcing this script. # # # # General assumption about the ideal replication behaviour: # # Whatever on the master is executed the content of the slave must # # be in sync with it. # # # # Tests of special interest: # # a) Which DDL commands cause an implicit COMMIT ? # # This is also of interest outside of replication. # # b) Transactions modifying table content ending with # # - explicit COMMIT or ROLLBACK # # - implicit COMMIT because the connection to the master # # executed a corresponding DDL statement or runs in # # AUTOCOMMIT mode # # - something similar to "implicit COMMIT" if the storage # # engine (master) is not transactional # # c) Command which change no data like SELECT or SHOW # # They do not change anything within the master but # # this must be also valid for the slave. # # # ####################################################################### # Last update: # 2007-02-12 ML: - slave needs AUTOCOMMIT = 1, because we want to check only # the propagation of actions of the master connection. # - replace comments via SQL by "--echo ..." # - remove some bugs within the testscripts # - remove the use of include/rpl_stmt_seq2.inc # # # NOTES: # 2006-11-15 Lars: Matthias (ML) is the "owner" of this test case. # So, please get him to review it whenever you want to # do changes to it. # # PLEASE BE CAREFUL, WHEN MODIFYING THE TESTS !! # # Typical test architecture (--> include/rpl_stmt_seq.inc) # -------------------------------------------------------- # 1. Master (no AUTOCOMMIT!): INSERT INTO mysqltest1.t1 without commit # 2. Master and slave: Check the content of mysqltest1.t1 # 3. Master (no AUTOCOMMIT!): EXECUTE the statement to be tested # 4. Master and slave: Check the content of mysqltest1.t1 # 5. Master (no AUTOCOMMIT!): ROLLBACK # 6. Master and slave: Check the content of mysqltest1.t1 # If the previous into mysqltest1.t1 inserted row is visible, # than the statement to be tested caused an explicit COMMIT # (statement = COMMIT) or an implicit COMMIT (example CREATE TABLE). # If the previous into mysqltest1.t1 inserted row is not visible, # than the statement to be tested caused either an explicit ROLLBACK # (statement = ROLLBACK), an implicit ROLLBACK (deadlock etc. but # not tested here) or it does not cause any transaction end. # 7. Flush the logs # # Some rules: # ----------- # 1. Any use of mysqltest1.t1 within the statement to be tested must be # avoided if possible. The only known exception is around LOCK TABLE. # # 2. The test logics needs for # master connection: AUTOCOMMIT = 0 # slave connection: AUTOCOMMIT = 1 # The master connection is the actor and the slave connection is # only an observer. I.e. the slave connection must not influence # the activities of master connection. # # 3. !All! objects to be dropped, renamed, altered ... must be created # before the tests start. # --> less switching of AUTOCOMMIT mode on master side. # # 4. Never use a test object, which was direct or indirect affected by a # preceding test sequence again. # If one preceding test sequence hits a (sometimes not visible, # because the sql error code of the statement might be 0) bug # and these rules are ignored, a following test sequence might earn ugly # effects like failing 'sync_slave_with_master', crashes of the slave or # abort of the test case etc.. This means during analysis the first look # points into a totally wrong area. # Except table mysqltest1.t1 where ONLY DML is allowed. # # 5. This file is used in several tests (t/rpl_ddl_<whatever>.test). # Please be aware that every change of the current file affects # the results of these tests. # # ML: Some maybe banal hints: # 1. The fact that we have here a master - slave replication does # not cause that many general MySQL properties do not apply. # Example: # The connection to the slave is just a simple session and not a however # magic working "copy" of the master session or something similar. # - TEMPORARY TABLES and @variables are session specific # - the slave session cannot see these things of the master. # 2. The slave connection must not call sync_slave_with_master. # 3. SHOW STATUS SLAVE must be run within the slave connection. # 4. Testcase analysis becomes much more comfortable if # $show_binlog within include/rpl_stmt_seq.inc is set to 1. # ############################################################### # Some preparations ############################################################### # The sync_slave_with_master is needed to make the xids deterministic. --source include/have_myisam.inc --source include/sync_slave_sql_with_master.inc --echo --echo -------- switch to master ------- connection master; SET AUTOCOMMIT = 1; # # 2. CREATE all objects needed # working database is mysqltest1 # working table (transactional!) is mysqltest1.t1 # CREATE DATABASE mysqltest1; CREATE DATABASE mysqltest2; eval CREATE TABLE mysqltest1.t1 (f1 BIGINT) ENGINE=$engine_type; # Prevent Bug#26687 rpl_ddl test fails if run with --innodb option # The testscript (suite/rpl/rpl_ddl.test) + the expected result need that the # slave uses MyISAM for the table mysqltest.t1. # This is not valid in case of suite/rpl_ndb/rpl_ndb_ddl.test which sources # also this script. --source include/sync_slave_sql_with_master.inc connection slave; if (`SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'mysqltest1' AND TABLE_NAME = 't1' AND ENGINE <> 'MyISAM' AND '$engine_type' <> 'NDB'`) { skip This test needs on slave side: InnoDB disabled, default engine: MyISAM; } connection master; INSERT INTO mysqltest1.t1 SET f1= 0; eval CREATE TABLE mysqltest1.t2 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t3 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t4 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t5 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t6 (f1 BIGINT) ENGINE=$engine_type; CREATE INDEX my_idx6 ON mysqltest1.t6(f1); eval CREATE TABLE mysqltest1.t7 (f1 BIGINT) ENGINE=$engine_type; INSERT INTO mysqltest1.t7 SET f1= 0; eval CREATE TABLE mysqltest1.t8 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t9 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t10 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t11 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t12 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t13 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t14 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t15 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t16 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t17 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t18 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TABLE mysqltest1.t19 (f1 BIGINT) ENGINE=$engine_type; eval CREATE TEMPORARY TABLE mysqltest1.t23 (f1 BIGINT) ENGINE=$temp_engine_type; # # 3. master sessions: never do AUTOCOMMIT # slave sessions: do AUTOCOMMIT # SET AUTOCOMMIT = 0; use mysqltest1; --source include/sync_slave_sql_with_master.inc --echo --echo -------- switch to slave -------- connection slave; SET AUTOCOMMIT = 1; use mysqltest1; --echo --echo -------- switch to master ------- connection master; # We don't want to abort the whole test if one statement sent # to the server gets an error, because the following test # sequences are nearly independend of the previous statements. --disable_abort_on_error ############################################################### # Banal case: commands which should never commit # Just for checking if the test sequence is usable ############################################################### let $my_stmt= SELECT 1; let $my_master_commit= false; let $my_slave_commit= false; --source include/rpl_stmt_seq.inc let $my_stmt= SELECT COUNT(*) FROM t1; let $my_master_commit= false; let $my_slave_commit= false; --source include/rpl_stmt_seq.inc ############################################################### # Banal case: (explicit) COMMIT and ROLLBACK # Just for checking if the test sequence is usable ############################################################### let $my_stmt= COMMIT; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc let $my_stmt= ROLLBACK; let $my_master_commit= false; let $my_slave_commit= false; --source include/rpl_stmt_seq.inc ############################################################### # Cases with commands very similar to COMMIT ############################################################### let $my_stmt= SET AUTOCOMMIT=1; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SET AUTOCOMMIT=0; let $my_stmt= START TRANSACTION; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc let $my_stmt= BEGIN; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc ############################################################### # Cases with (BASE) TABLES and (UPDATABLE) VIEWs ############################################################### let $my_stmt= DROP TABLE mysqltest1.t2; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SHOW TABLES LIKE 't2'; --echo --echo -------- switch to slave -------- connection slave; SHOW TABLES LIKE 't2'; --echo --echo -------- switch to master ------- connection master; let $my_stmt= DROP TEMPORARY TABLE mysqltest1.t23; let $my_master_commit= false; let $my_slave_commit= false; --source include/rpl_stmt_seq.inc SHOW TABLES LIKE 't23'; --echo --echo -------- switch to slave -------- connection slave; SHOW TABLES LIKE 't23'; --echo --echo -------- switch to master ------- connection master; let $my_stmt= RENAME TABLE mysqltest1.t3 to mysqltest1.t20; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SHOW TABLES LIKE 't20'; --echo --echo -------- switch to slave -------- connection slave; SHOW TABLES LIKE 't20'; --echo --echo -------- switch to master ------- connection master; let $my_stmt= ALTER TABLE mysqltest1.t4 ADD column f2 BIGINT; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc describe mysqltest1.t4; --echo --echo -------- switch to slave -------- connection slave; describe mysqltest1.t4; --echo --echo -------- switch to master ------- connection master; let $my_stmt= CREATE TABLE mysqltest1.t21 (f1 BIGINT) ENGINE= $engine_type; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc let $engine=''; let $eng_type=''; let $my_stmt= CREATE TEMPORARY TABLE mysqltest1.t22 (f1 BIGINT) ENGINE=$temp_engine_type; let $my_master_commit= false; let $my_slave_commit= false; --source include/rpl_stmt_seq.inc let $my_stmt= TRUNCATE TABLE mysqltest1.t7; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SELECT * FROM mysqltest1.t7; --source include/sync_slave_sql_with_master.inc --echo --echo -------- switch to slave -------- connection slave; SELECT * FROM mysqltest1.t7; --echo --echo -------- switch to master ------- connection master; ############################################################### # Cases with LOCK/UNLOCK ############################################################### # Attention: # We have to LOCK mysqltest1.t1 here, though it violates the testing # philosophy. # Mysql response in case without previous LOCK TABLES mysqltest1.t1 # is: # SELECT MAX(...) FROM mysqltest1.t1 is # ERROR HY000: Table 't1' was not locked with LOCK TABLES let $my_stmt= LOCK TABLES mysqltest1.t1 WRITE, mysqltest1.t8 READ; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc UNLOCK TABLES; # No prior locking let $my_stmt= UNLOCK TABLES; let $my_master_commit= false; let $my_slave_commit= false; --source include/rpl_stmt_seq.inc # With prior read locking # Attention: # This subtest generates an error since the rpl_stmt_seq.inc # tries to insert into t1. LOCK TABLES mysqltest1.t1 READ; let $my_stmt= UNLOCK TABLES; let $my_master_commit= false; let $my_slave_commit= false; --source include/rpl_stmt_seq.inc # With prior write locking LOCK TABLES mysqltest1.t1 WRITE, mysqltest1.t8 READ; let $my_stmt= UNLOCK TABLES; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc ############################################################### # Cases with INDEXES ############################################################### let $my_stmt= DROP INDEX my_idx6 ON mysqltest1.t6; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SHOW INDEX FROM mysqltest1.t6; --echo --echo -------- switch to slave -------- connection slave; SHOW INDEX FROM mysqltest1.t6; --echo --echo -------- switch to master ------- connection master; let $my_stmt= CREATE INDEX my_idx5 ON mysqltest1.t5(f1); let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SHOW INDEX FROM mysqltest1.t5; --echo --echo -------- switch to slave -------- connection slave; SHOW INDEX FROM mysqltest1.t5; --echo --echo -------- switch to master ------- connection master; ############################################################### # Cases with DATABASE ############################################################### let $my_stmt= DROP DATABASE mysqltest2; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SHOW DATABASES LIKE "mysqltest2"; --echo --echo -------- switch to slave -------- connection slave; SHOW DATABASES LIKE "mysqltest2"; --echo --echo -------- switch to master ------- connection master; let $my_stmt= CREATE DATABASE mysqltest3; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SHOW DATABASES LIKE "mysqltest3"; --echo --echo -------- switch to slave -------- connection slave; SHOW DATABASES LIKE "mysqltest3"; --echo --echo -------- switch to master ------- connection master; # End of 4.1 tests ############################################################### # Cases with STORED PROCEDUREs ############################################################### let $my_stmt= CREATE PROCEDURE p1() READS SQL DATA SELECT "this is p1"; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc --vertical_results --replace_column 5 # 6 # SHOW PROCEDURE STATUS LIKE 'p1'; --echo --echo -------- switch to slave -------- connection slave; --replace_column 5 # 6 # SHOW PROCEDURE STATUS LIKE 'p1'; --echo --echo -------- switch to master ------- connection master; --horizontal_results let $my_stmt= ALTER PROCEDURE p1 COMMENT "I have been altered"; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc --vertical_results --replace_column 5 # 6 # SHOW PROCEDURE STATUS LIKE 'p1'; --echo --echo -------- switch to slave -------- connection slave; --replace_column 5 # 6 # SHOW PROCEDURE STATUS LIKE 'p1'; --echo --echo -------- switch to master ------- connection master; --horizontal_results let $my_stmt= DROP PROCEDURE p1; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc --vertical_results SHOW PROCEDURE STATUS LIKE 'p1'; --echo --echo -------- switch to slave -------- connection slave; SHOW PROCEDURE STATUS LIKE 'p1'; --echo --echo -------- switch to master ------- connection master; --horizontal_results ############################################################### # Cases with VIEWs ############################################################### let $my_stmt= CREATE OR REPLACE VIEW v1 as select * from t1; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SHOW CREATE VIEW v1; --echo --echo -------- switch to slave -------- connection slave; SHOW CREATE VIEW v1; --echo --echo -------- switch to master ------- connection master; let $my_stmt= ALTER VIEW v1 AS select f1 from t1; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SHOW CREATE VIEW v1; --echo --echo -------- switch to slave -------- connection slave; SHOW CREATE VIEW v1; --echo --echo -------- switch to master ------- connection master; let $my_stmt= DROP VIEW IF EXISTS v1; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc --error 1146 SHOW CREATE VIEW v1; --echo --echo -------- switch to slave -------- connection slave; --error 1146 SHOW CREATE VIEW v1; --echo --echo -------- switch to master ------- connection master; ############################################################### # Cases with TRIGGERs ############################################################### let $my_stmt= CREATE TRIGGER trg1 BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SHOW TRIGGERS; --echo --echo -------- switch to slave -------- connection slave; SHOW TRIGGERS; --echo --echo -------- switch to master ------- connection master; let $my_stmt= DROP TRIGGER trg1; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SHOW TRIGGERS; --echo --echo -------- switch to slave -------- connection slave; SHOW TRIGGERS; --echo --echo -------- switch to master ------- connection master; ############################################################### # Cases with USERs ############################################################### let $my_stmt= CREATE USER user1@localhost; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SELECT user FROM mysql.user WHERE user = 'user1'; --echo --echo -------- switch to slave -------- connection slave; SELECT user FROM mysql.user WHERE user = 'user1'; --echo --echo -------- switch to master ------- connection master; let $my_stmt= RENAME USER user1@localhost TO rename1@localhost; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SELECT user FROM mysql.user WHERE user = 'rename1'; --echo --echo -------- switch to slave -------- connection slave; SELECT user FROM mysql.user WHERE user = 'rename1'; --echo --echo -------- switch to master ------- connection master; let $my_stmt= DROP USER rename1@localhost; let $my_master_commit= true; let $my_slave_commit= true; --source include/rpl_stmt_seq.inc SELECT user FROM mysql.user WHERE user = 'rename1'; --echo --echo -------- switch to slave -------- connection slave; SELECT user FROM mysql.user WHERE user = 'rename1'; ############################################################### # Cleanup ############################################################### use test; --echo --echo -------- switch to master ------- connection master; DROP DATABASE mysqltest1; # mysqltest2 was alreday DROPPED some tests before. DROP DATABASE mysqltest3;
Close