| 1 |
include/master-slave.inc |
| 2 |
Warnings: |
| 3 |
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 4 |
Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information. |
| 5 |
[connection master] |
| 6 |
include/stop_slave.inc |
| 7 |
set @save.replica_parallel_workers= @@global.replica_parallel_workers; |
| 8 |
set @@global.replica_parallel_workers= 4; |
| 9 |
set @save.replica_checkpoint_period= @@global.replica_checkpoint_period; |
| 10 |
set @@global.replica_checkpoint_period= 500; |
| 11 |
set @save.replica_transaction_retries= @@global.replica_transaction_retries; |
| 12 |
include/start_slave.inc |
| 13 |
create table t1 (f1 int) engine=innodb; |
| 14 |
create table t2 (f1 int) engine=innodb; |
| 15 |
include/sync_slave_sql_with_master.inc |
| 16 |
include/stop_slave_sql.inc |
| 17 |
begin; |
| 18 |
insert into t1 values (sleep(3) + 1); |
| 19 |
Warnings: |
| 20 |
Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the replica. |
| 21 |
commit; |
| 22 |
begin; |
| 23 |
insert into t2 values (1); |
| 24 |
commit; |
| 25 |
include/sync_slave_io_with_master.inc |
| 26 |
lock table t2 write; |
| 27 |
include/start_slave_sql.inc |
| 28 |
First transaction is done, now get Seconds_Behind_Master after it... |
| 29 |
include/wait_for_slave_param.inc [Seconds_Behind_Master] |
| 30 |
Seconds_Behind_Master after first transaction is as expected. |
| 31 |
unlock tables; |
| 32 |
include/wait_for_slave_param.inc [Seconds_Behind_Master] |
| 33 |
drop tables t1, t2; |
| 34 |
include/sync_slave_sql_with_master.inc |
| 35 |
set @@global.replica_checkpoint_period= @save.replica_checkpoint_period; |
| 36 |
set @@global.replica_parallel_workers= @save.replica_parallel_workers; |
| 37 |
set @@global.replica_transaction_retries= @save.replica_transaction_retries; |
| 38 |
include/rpl_end.inc |