| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection master; |
| 4 |
ALTER DATABASE test CHARACTER SET latin1 COLLATE latin1_swedish_ci; |
| 5 |
connection slave; |
| 6 |
connection slave; |
| 7 |
include/stop_slave.inc |
| 8 |
connection master; |
| 9 |
include/rpl_stop_server.inc [server_number=1] |
| 10 |
include/rpl_start_server.inc [server_number=1] |
| 11 |
connection slave; |
| 12 |
SET SQL_LOG_BIN=0; |
| 13 |
ALTER TABLE mysql.gtid_slave_pos ENGINE = InnoDB; |
| 14 |
SET SQL_LOG_BIN=1; |
| 15 |
SET @old_engine= @@GLOBAL.default_storage_engine; |
| 16 |
SET GLOBAL default_storage_engine=InnoDB; |
| 17 |
SET @old_parallel= @@GLOBAL.slave_parallel_threads; |
| 18 |
SET GLOBAL slave_parallel_threads=12; |
| 19 |
CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4, master_use_gtid=no; |
| 20 |
include/start_slave.inc |
| 21 |
connection master; |
| 22 |
SET SQL_LOG_BIN=0; |
| 23 |
ALTER TABLE mysql.gtid_slave_pos ENGINE = InnoDB; |
| 24 |
SET SQL_LOG_BIN=1; |
| 25 |
connection slave; |
| 26 |
SELECT @@gtid_slave_pos; |
| 27 |
@@gtid_slave_pos |
| 28 |
0-1-1381 |
| 29 |
CHECKSUM TABLE table0_int_autoinc, table0_key_pk_parts_2_int_autoinc, table100_int_autoinc, table100_key_pk_parts_2_int_autoinc, table10_int_autoinc, table10_key_pk_parts_2_int_autoinc, table1_int_autoinc, table1_key_pk_parts_2_int_autoinc, table2_int_autoinc, table2_key_pk_parts_2_int_autoinc; |
| 30 |
Table Checksum |
| 31 |
test.table0_int_autoinc 3623174395 |
| 32 |
test.table0_key_pk_parts_2_int_autoinc 2888328157 |
| 33 |
test.table100_int_autoinc 3624823809 |
| 34 |
test.table100_key_pk_parts_2_int_autoinc 3316583308 |
| 35 |
test.table10_int_autoinc 1615053718 |
| 36 |
test.table10_key_pk_parts_2_int_autoinc 4147461080 |
| 37 |
test.table1_int_autoinc 478809705 |
| 38 |
test.table1_key_pk_parts_2_int_autoinc 3032208641 |
| 39 |
test.table2_int_autoinc 854763867 |
| 40 |
test.table2_key_pk_parts_2_int_autoinc 4231615291 |
| 41 |
include/stop_slave.inc |
| 42 |
SET GLOBAL default_storage_engine= @old_engine; |
| 43 |
SET GLOBAL slave_parallel_threads=@old_parallel; |
| 44 |
SET sql_log_bin=0; |
| 45 |
DROP TABLE table0_int_autoinc; |
| 46 |
DROP TABLE table0_key_pk_parts_2_int_autoinc; |
| 47 |
DROP TABLE table100_int_autoinc; |
| 48 |
DROP TABLE table100_key_pk_parts_2_int_autoinc; |
| 49 |
DROP TABLE table10_int_autoinc; |
| 50 |
DROP TABLE table10_key_pk_parts_2_int_autoinc; |
| 51 |
DROP TABLE table1_int_autoinc; |
| 52 |
DROP TABLE table1_key_pk_parts_2_int_autoinc; |
| 53 |
DROP TABLE table2_int_autoinc; |
| 54 |
DROP TABLE table2_key_pk_parts_2_int_autoinc; |
| 55 |
SET sql_log_bin=1; |
| 56 |
ALTER DATABASE test CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_ai_ci; |
| 57 |
include/start_slave.inc |
| 58 |
connection master; |
| 59 |
ALTER DATABASE test CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_ai_ci; |
| 60 |
include/rpl_end.inc |