1
include/master-slave.inc
3
set @restore_slave_net_timeout= @@global.slave_net_timeout;
4
set @@global.slave_net_timeout= 10;
5
SHOW STATUS LIKE "Slave_last_heartbeat";
6
Variable_name Slave_last_heartbeat
8
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
10
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
11
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
12
show status like 'Slave_heartbeat_period';;
13
Variable_name Slave_heartbeat_period
15
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4294968;
16
ERROR HY000: The requested value for the heartbeat period is either negative or exceeds the maximum allowed (4294967 seconds).
17
show status like 'Slave_heartbeat_period';;
18
Variable_name Slave_heartbeat_period
20
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.0009999;
22
Warning #### The requested value for the heartbeat period is less than 1 millisecond. The value is reset to 0, meaning that heartbeating will effectively be disabled.
23
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
24
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
25
show status like 'Slave_heartbeat_period';;
26
Variable_name Slave_heartbeat_period
28
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4294967;
30
Warning #### The requested value for the heartbeat period exceeds the value of `slave_net_timeout' seconds. A sensible value for the period should be less than the timeout.
31
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
32
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
33
show status like 'Slave_heartbeat_period';;
34
Variable_name Slave_heartbeat_period
36
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.001;
38
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
39
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
40
show status like 'Slave_heartbeat_period';;
41
Variable_name Slave_heartbeat_period
44
set @@global.slave_net_timeout= 5;
45
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 5.001;
47
Warning #### The requested value for the heartbeat period exceeds the value of `slave_net_timeout' seconds. A sensible value for the period should be less than the timeout.
48
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
49
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
50
show status like 'Slave_heartbeat_period';;
51
Variable_name Slave_heartbeat_period
54
set @@global.slave_net_timeout= 5;
55
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4;
57
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
58
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
59
show status like 'Slave_heartbeat_period';;
60
Variable_name Slave_heartbeat_period
62
set @@global.slave_net_timeout= 3 /* must be a warning */;
64
Warning 1704 The requested value for the heartbeat period exceeds the value of `slave_net_timeout' seconds. A sensible value for the period should be less than the timeout.
66
drop table if exists t1;
67
set @@global.slave_net_timeout= 10;
68
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.5;
70
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
71
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
72
show status like 'Slave_heartbeat_period';;
73
Variable_name Slave_heartbeat_period
76
create table t1 (f1 int);
77
include/check_slave_param.inc [Relay_Log_File]
78
show status like 'Slave_heartbeat_period';;
79
Variable_name Slave_heartbeat_period
81
A heartbeat has been received by the slave
82
include/assert.inc [Slave_last_heartbeat should not be empty]
84
set @@global.slave_net_timeout= @restore_slave_net_timeout;