2016-03-25 20:51:22 +04:00
|
|
|
connect slave,127.0.0.1,root,,,$SERVER_MYPORT_3;
|
|
|
|
connect master1,127.0.0.1,root,,,$SERVER_MYPORT_1;
|
|
|
|
connect master2,127.0.0.1,root,,,$SERVER_MYPORT_2;
|
|
|
|
connection slave;
|
2012-09-28 02:06:56 +03:00
|
|
|
change master 'slave1' to master_port=MYPORT_1, master_host='127.0.0.1', master_user='root';
|
|
|
|
change master 'slave2' to master_port=MYPORT_2, master_host='127.0.0.1', master_user='root';
|
|
|
|
start slave 'slave1';
|
2012-09-28 09:28:40 +04:00
|
|
|
set default_master_connection = 'slave1';
|
|
|
|
include/wait_for_slave_to_start.inc
|
|
|
|
set default_master_connection = 'slave2';
|
2012-10-03 01:44:54 +03:00
|
|
|
start all slaves;
|
|
|
|
Warnings:
|
2012-10-11 07:01:44 +04:00
|
|
|
Note 1937 SLAVE 'slave2' started
|
2012-09-28 09:28:40 +04:00
|
|
|
include/wait_for_slave_to_start.inc
|
|
|
|
set default_master_connection = '';
|
2016-03-25 20:51:22 +04:00
|
|
|
connection master1;
|
|
|
|
connection slave;
|
|
|
|
connection master2;
|
|
|
|
connection slave;
|
2012-10-03 01:44:54 +03:00
|
|
|
show all slaves status;
|
2021-04-16 08:48:15 +05:30
|
|
|
Connection_name slave1
|
|
|
|
Slave_SQL_State Slave has read all relay log; waiting for more updates
|
|
|
|
Slave_IO_State Waiting for master to send event
|
|
|
|
Master_Host 127.0.0.1
|
|
|
|
Master_User root
|
|
|
|
Master_Port MYPORT_1
|
|
|
|
Connect_Retry 60
|
|
|
|
Master_Log_File master-bin.000001
|
|
|
|
Read_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_File mysqld-relay-bin-slave1.000002
|
|
|
|
Relay_Log_Pos <relay_log_pos>
|
|
|
|
Relay_Master_Log_File master-bin.000001
|
|
|
|
Slave_IO_Running Yes
|
|
|
|
Slave_SQL_Running Yes
|
|
|
|
Replicate_Do_DB
|
|
|
|
Replicate_Ignore_DB
|
|
|
|
Replicate_Do_Table
|
|
|
|
Replicate_Ignore_Table
|
|
|
|
Replicate_Wild_Do_Table
|
|
|
|
Replicate_Wild_Ignore_Table
|
|
|
|
Last_Errno 0
|
|
|
|
Last_Error
|
|
|
|
Skip_Counter 0
|
|
|
|
Exec_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_Space <relay_log_space1>
|
|
|
|
Until_Condition None
|
|
|
|
Until_Log_File
|
|
|
|
Until_Log_Pos 0
|
|
|
|
Master_SSL_Allowed No
|
|
|
|
Master_SSL_CA_File
|
|
|
|
Master_SSL_CA_Path
|
|
|
|
Master_SSL_Cert
|
|
|
|
Master_SSL_Cipher
|
|
|
|
Master_SSL_Key
|
|
|
|
Seconds_Behind_Master 0
|
|
|
|
Master_SSL_Verify_Server_Cert No
|
|
|
|
Last_IO_Errno 0
|
|
|
|
Last_IO_Error
|
|
|
|
Last_SQL_Errno 0
|
|
|
|
Last_SQL_Error
|
|
|
|
Replicate_Ignore_Server_Ids
|
|
|
|
Master_Server_Id 1
|
|
|
|
Master_SSL_Crl
|
|
|
|
Master_SSL_Crlpath
|
|
|
|
Using_Gtid No
|
|
|
|
Gtid_IO_Pos
|
|
|
|
Replicate_Do_Domain_Ids
|
|
|
|
Replicate_Ignore_Domain_Ids
|
|
|
|
Parallel_Mode optimistic
|
|
|
|
SQL_Delay 0
|
|
|
|
SQL_Remaining_Delay NULL
|
|
|
|
Slave_SQL_Running_State Slave has read all relay log; waiting for more updates
|
|
|
|
Slave_DDL_Groups 0
|
|
|
|
Slave_Non_Transactional_Groups 0
|
|
|
|
Slave_Transactional_Groups 0
|
|
|
|
Retried_transactions 0
|
|
|
|
Max_relay_log_size 1073741824
|
|
|
|
Executed_log_entries 7
|
|
|
|
Slave_received_heartbeats 0
|
|
|
|
Slave_heartbeat_period 60.000
|
|
|
|
Gtid_Slave_Pos
|
|
|
|
Connection_name slave2
|
|
|
|
Slave_SQL_State Slave has read all relay log; waiting for more updates
|
|
|
|
Slave_IO_State Waiting for master to send event
|
|
|
|
Master_Host 127.0.0.1
|
|
|
|
Master_User root
|
|
|
|
Master_Port MYPORT_2
|
|
|
|
Connect_Retry 60
|
|
|
|
Master_Log_File master-bin.000001
|
|
|
|
Read_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_File mysqld-relay-bin-slave2.000002
|
|
|
|
Relay_Log_Pos <relay_log_pos>
|
|
|
|
Relay_Master_Log_File master-bin.000001
|
|
|
|
Slave_IO_Running Yes
|
|
|
|
Slave_SQL_Running Yes
|
|
|
|
Replicate_Do_DB
|
|
|
|
Replicate_Ignore_DB
|
|
|
|
Replicate_Do_Table
|
|
|
|
Replicate_Ignore_Table
|
|
|
|
Replicate_Wild_Do_Table
|
|
|
|
Replicate_Wild_Ignore_Table
|
|
|
|
Last_Errno 0
|
|
|
|
Last_Error
|
|
|
|
Skip_Counter 0
|
|
|
|
Exec_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_Space <relay_log_space1>
|
|
|
|
Until_Condition None
|
|
|
|
Until_Log_File
|
|
|
|
Until_Log_Pos 0
|
|
|
|
Master_SSL_Allowed No
|
|
|
|
Master_SSL_CA_File
|
|
|
|
Master_SSL_CA_Path
|
|
|
|
Master_SSL_Cert
|
|
|
|
Master_SSL_Cipher
|
|
|
|
Master_SSL_Key
|
|
|
|
Seconds_Behind_Master 0
|
|
|
|
Master_SSL_Verify_Server_Cert No
|
|
|
|
Last_IO_Errno 0
|
|
|
|
Last_IO_Error
|
|
|
|
Last_SQL_Errno 0
|
|
|
|
Last_SQL_Error
|
|
|
|
Replicate_Ignore_Server_Ids
|
|
|
|
Master_Server_Id 2
|
|
|
|
Master_SSL_Crl
|
|
|
|
Master_SSL_Crlpath
|
|
|
|
Using_Gtid No
|
|
|
|
Gtid_IO_Pos
|
|
|
|
Replicate_Do_Domain_Ids
|
|
|
|
Replicate_Ignore_Domain_Ids
|
|
|
|
Parallel_Mode optimistic
|
|
|
|
SQL_Delay 0
|
|
|
|
SQL_Remaining_Delay NULL
|
|
|
|
Slave_SQL_Running_State Slave has read all relay log; waiting for more updates
|
|
|
|
Slave_DDL_Groups 0
|
|
|
|
Slave_Non_Transactional_Groups 0
|
|
|
|
Slave_Transactional_Groups 0
|
|
|
|
Retried_transactions 0
|
|
|
|
Max_relay_log_size 1073741824
|
|
|
|
Executed_log_entries 7
|
|
|
|
Slave_received_heartbeats 0
|
|
|
|
Slave_heartbeat_period 60.000
|
|
|
|
Gtid_Slave_Pos
|
|
|
|
#
|
|
|
|
# MDEV:16437: merge 5.7 P_S replication instrumentation and tables
|
|
|
|
#
|
|
|
|
select * from performance_schema.replication_connection_configuration;
|
|
|
|
CHANNEL_NAME slave2
|
|
|
|
HOST 127.0.0.1
|
|
|
|
PORT #
|
|
|
|
USER root
|
|
|
|
USING_GTID NO
|
|
|
|
SSL_ALLOWED NO
|
|
|
|
SSL_CA_FILE
|
|
|
|
SSL_CA_PATH
|
|
|
|
SSL_CERTIFICATE
|
|
|
|
SSL_CIPHER
|
|
|
|
SSL_KEY
|
|
|
|
SSL_VERIFY_SERVER_CERTIFICATE NO
|
|
|
|
SSL_CRL_FILE
|
|
|
|
SSL_CRL_PATH
|
|
|
|
CONNECTION_RETRY_INTERVAL 60
|
|
|
|
CONNECTION_RETRY_COUNT 100000
|
|
|
|
HEARTBEAT_INTERVAL 60.000
|
|
|
|
IGNORE_SERVER_IDS
|
|
|
|
REPL_DO_DOMAIN_IDS
|
|
|
|
REPL_IGNORE_DOMAIN_IDS
|
|
|
|
CHANNEL_NAME slave1
|
|
|
|
HOST 127.0.0.1
|
|
|
|
PORT #
|
|
|
|
USER root
|
|
|
|
USING_GTID NO
|
|
|
|
SSL_ALLOWED NO
|
|
|
|
SSL_CA_FILE
|
|
|
|
SSL_CA_PATH
|
|
|
|
SSL_CERTIFICATE
|
|
|
|
SSL_CIPHER
|
|
|
|
SSL_KEY
|
|
|
|
SSL_VERIFY_SERVER_CERTIFICATE NO
|
|
|
|
SSL_CRL_FILE
|
|
|
|
SSL_CRL_PATH
|
|
|
|
CONNECTION_RETRY_INTERVAL 60
|
|
|
|
CONNECTION_RETRY_COUNT 100000
|
|
|
|
HEARTBEAT_INTERVAL 60.000
|
|
|
|
IGNORE_SERVER_IDS
|
|
|
|
REPL_DO_DOMAIN_IDS
|
|
|
|
REPL_IGNORE_DOMAIN_IDS
|
2012-10-03 01:44:54 +03:00
|
|
|
start all slaves;
|
2012-09-28 02:06:56 +03:00
|
|
|
stop slave 'slave1';
|
|
|
|
show slave 'slave1' status;
|
|
|
|
Slave_IO_State
|
|
|
|
Master_Host 127.0.0.1
|
|
|
|
Master_User root
|
|
|
|
Master_Port MYPORT_1
|
|
|
|
Connect_Retry 60
|
|
|
|
Master_Log_File master-bin.000001
|
2015-08-21 23:20:35 +02:00
|
|
|
Read_Master_Log_Pos <read_master_log_pos>
|
2012-09-28 02:06:56 +03:00
|
|
|
Relay_Log_File mysqld-relay-bin-slave1.000002
|
2015-08-21 23:20:35 +02:00
|
|
|
Relay_Log_Pos <relay_log_pos>
|
2012-09-28 02:06:56 +03:00
|
|
|
Relay_Master_Log_File master-bin.000001
|
|
|
|
Slave_IO_Running No
|
|
|
|
Slave_SQL_Running No
|
|
|
|
Replicate_Do_DB
|
|
|
|
Replicate_Ignore_DB
|
|
|
|
Replicate_Do_Table
|
|
|
|
Replicate_Ignore_Table
|
|
|
|
Replicate_Wild_Do_Table
|
|
|
|
Replicate_Wild_Ignore_Table
|
|
|
|
Last_Errno 0
|
|
|
|
Last_Error
|
|
|
|
Skip_Counter 0
|
2015-08-21 23:20:35 +02:00
|
|
|
Exec_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_Space <relay_log_space1>
|
2012-09-28 02:06:56 +03:00
|
|
|
Until_Condition None
|
|
|
|
Until_Log_File
|
|
|
|
Until_Log_Pos 0
|
|
|
|
Master_SSL_Allowed No
|
|
|
|
Master_SSL_CA_File
|
|
|
|
Master_SSL_CA_Path
|
|
|
|
Master_SSL_Cert
|
|
|
|
Master_SSL_Cipher
|
|
|
|
Master_SSL_Key
|
|
|
|
Seconds_Behind_Master NULL
|
|
|
|
Master_SSL_Verify_Server_Cert No
|
|
|
|
Last_IO_Errno 0
|
|
|
|
Last_IO_Error
|
|
|
|
Last_SQL_Errno 0
|
|
|
|
Last_SQL_Error
|
|
|
|
Replicate_Ignore_Server_Ids
|
|
|
|
Master_Server_Id 1
|
2012-10-19 20:38:59 +02:00
|
|
|
Master_SSL_Crl
|
|
|
|
Master_SSL_Crlpath
|
2013-05-22 17:36:48 +02:00
|
|
|
Using_Gtid No
|
2013-11-25 15:21:25 +01:00
|
|
|
Gtid_IO_Pos
|
2014-12-03 22:30:48 -05:00
|
|
|
Replicate_Do_Domain_Ids
|
|
|
|
Replicate_Ignore_Domain_Ids
|
2019-12-23 17:48:01 +05:30
|
|
|
Parallel_Mode optimistic
|
2016-09-22 12:23:32 +02:00
|
|
|
SQL_Delay 0
|
|
|
|
SQL_Remaining_Delay NULL
|
|
|
|
Slave_SQL_Running_State
|
2018-04-19 14:31:20 +05:30
|
|
|
Slave_DDL_Groups 0
|
|
|
|
Slave_Non_Transactional_Groups 0
|
|
|
|
Slave_Transactional_Groups 0
|
2012-09-28 02:06:56 +03:00
|
|
|
reset slave 'slave1';
|
2012-10-03 01:44:54 +03:00
|
|
|
show all slaves status;
|
2021-04-16 08:48:15 +05:30
|
|
|
Connection_name slave1
|
|
|
|
Slave_SQL_State
|
|
|
|
Slave_IO_State
|
|
|
|
Master_Host 127.0.0.1
|
|
|
|
Master_User root
|
|
|
|
Master_Port MYPORT_1
|
|
|
|
Connect_Retry 60
|
|
|
|
Master_Log_File
|
|
|
|
Read_Master_Log_Pos 4
|
|
|
|
Relay_Log_File
|
|
|
|
Relay_Log_Pos <relay_log_pos>
|
|
|
|
Relay_Master_Log_File
|
|
|
|
Slave_IO_Running No
|
|
|
|
Slave_SQL_Running No
|
|
|
|
Replicate_Do_DB
|
|
|
|
Replicate_Ignore_DB
|
|
|
|
Replicate_Do_Table
|
|
|
|
Replicate_Ignore_Table
|
|
|
|
Replicate_Wild_Do_Table
|
|
|
|
Replicate_Wild_Ignore_Table
|
|
|
|
Last_Errno 0
|
|
|
|
Last_Error
|
|
|
|
Skip_Counter 0
|
|
|
|
Exec_Master_Log_Pos 0
|
|
|
|
Relay_Log_Space <relay_log_space1>
|
|
|
|
Until_Condition None
|
|
|
|
Until_Log_File
|
|
|
|
Until_Log_Pos 0
|
|
|
|
Master_SSL_Allowed No
|
|
|
|
Master_SSL_CA_File
|
|
|
|
Master_SSL_CA_Path
|
|
|
|
Master_SSL_Cert
|
|
|
|
Master_SSL_Cipher
|
|
|
|
Master_SSL_Key
|
|
|
|
Seconds_Behind_Master NULL
|
|
|
|
Master_SSL_Verify_Server_Cert No
|
|
|
|
Last_IO_Errno 0
|
|
|
|
Last_IO_Error
|
|
|
|
Last_SQL_Errno 0
|
|
|
|
Last_SQL_Error
|
|
|
|
Replicate_Ignore_Server_Ids
|
|
|
|
Master_Server_Id 1
|
|
|
|
Master_SSL_Crl
|
|
|
|
Master_SSL_Crlpath
|
|
|
|
Using_Gtid No
|
|
|
|
Gtid_IO_Pos
|
|
|
|
Replicate_Do_Domain_Ids
|
|
|
|
Replicate_Ignore_Domain_Ids
|
|
|
|
Parallel_Mode optimistic
|
|
|
|
SQL_Delay 0
|
|
|
|
SQL_Remaining_Delay NULL
|
|
|
|
Slave_SQL_Running_State
|
|
|
|
Slave_DDL_Groups 0
|
|
|
|
Slave_Non_Transactional_Groups 0
|
|
|
|
Slave_Transactional_Groups 0
|
|
|
|
Retried_transactions 0
|
|
|
|
Max_relay_log_size 1073741824
|
|
|
|
Executed_log_entries 7
|
|
|
|
Slave_received_heartbeats 0
|
|
|
|
Slave_heartbeat_period 60.000
|
|
|
|
Gtid_Slave_Pos
|
|
|
|
Connection_name slave2
|
|
|
|
Slave_SQL_State Slave has read all relay log; waiting for more updates
|
|
|
|
Slave_IO_State Waiting for master to send event
|
|
|
|
Master_Host 127.0.0.1
|
|
|
|
Master_User root
|
|
|
|
Master_Port MYPORT_2
|
|
|
|
Connect_Retry 60
|
|
|
|
Master_Log_File master-bin.000001
|
|
|
|
Read_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_File mysqld-relay-bin-slave2.000002
|
|
|
|
Relay_Log_Pos <relay_log_pos>
|
|
|
|
Relay_Master_Log_File master-bin.000001
|
|
|
|
Slave_IO_Running Yes
|
|
|
|
Slave_SQL_Running Yes
|
|
|
|
Replicate_Do_DB
|
|
|
|
Replicate_Ignore_DB
|
|
|
|
Replicate_Do_Table
|
|
|
|
Replicate_Ignore_Table
|
|
|
|
Replicate_Wild_Do_Table
|
|
|
|
Replicate_Wild_Ignore_Table
|
|
|
|
Last_Errno 0
|
|
|
|
Last_Error
|
|
|
|
Skip_Counter 0
|
|
|
|
Exec_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_Space <relay_log_space1>
|
|
|
|
Until_Condition None
|
|
|
|
Until_Log_File
|
|
|
|
Until_Log_Pos 0
|
|
|
|
Master_SSL_Allowed No
|
|
|
|
Master_SSL_CA_File
|
|
|
|
Master_SSL_CA_Path
|
|
|
|
Master_SSL_Cert
|
|
|
|
Master_SSL_Cipher
|
|
|
|
Master_SSL_Key
|
|
|
|
Seconds_Behind_Master 0
|
|
|
|
Master_SSL_Verify_Server_Cert No
|
|
|
|
Last_IO_Errno 0
|
|
|
|
Last_IO_Error
|
|
|
|
Last_SQL_Errno 0
|
|
|
|
Last_SQL_Error
|
|
|
|
Replicate_Ignore_Server_Ids
|
|
|
|
Master_Server_Id 2
|
|
|
|
Master_SSL_Crl
|
|
|
|
Master_SSL_Crlpath
|
|
|
|
Using_Gtid No
|
|
|
|
Gtid_IO_Pos
|
|
|
|
Replicate_Do_Domain_Ids
|
|
|
|
Replicate_Ignore_Domain_Ids
|
|
|
|
Parallel_Mode optimistic
|
|
|
|
SQL_Delay 0
|
|
|
|
SQL_Remaining_Delay NULL
|
|
|
|
Slave_SQL_Running_State Slave has read all relay log; waiting for more updates
|
|
|
|
Slave_DDL_Groups 0
|
|
|
|
Slave_Non_Transactional_Groups 0
|
|
|
|
Slave_Transactional_Groups 0
|
|
|
|
Retried_transactions 0
|
|
|
|
Max_relay_log_size 1073741824
|
|
|
|
Executed_log_entries 7
|
|
|
|
Slave_received_heartbeats 0
|
|
|
|
Slave_heartbeat_period 60.000
|
|
|
|
Gtid_Slave_Pos
|
2012-09-28 02:06:56 +03:00
|
|
|
reset slave 'slave1' all;
|
2012-10-03 01:44:54 +03:00
|
|
|
show all slaves status;
|
2021-04-16 08:48:15 +05:30
|
|
|
Connection_name slave2
|
|
|
|
Slave_SQL_State Slave has read all relay log; waiting for more updates
|
|
|
|
Slave_IO_State Waiting for master to send event
|
|
|
|
Master_Host 127.0.0.1
|
|
|
|
Master_User root
|
|
|
|
Master_Port MYPORT_2
|
|
|
|
Connect_Retry 60
|
|
|
|
Master_Log_File master-bin.000001
|
|
|
|
Read_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_File mysqld-relay-bin-slave2.000002
|
|
|
|
Relay_Log_Pos <relay_log_pos>
|
|
|
|
Relay_Master_Log_File master-bin.000001
|
|
|
|
Slave_IO_Running Yes
|
|
|
|
Slave_SQL_Running Yes
|
|
|
|
Replicate_Do_DB
|
|
|
|
Replicate_Ignore_DB
|
|
|
|
Replicate_Do_Table
|
|
|
|
Replicate_Ignore_Table
|
|
|
|
Replicate_Wild_Do_Table
|
|
|
|
Replicate_Wild_Ignore_Table
|
|
|
|
Last_Errno 0
|
|
|
|
Last_Error
|
|
|
|
Skip_Counter 0
|
|
|
|
Exec_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_Space <relay_log_space1>
|
|
|
|
Until_Condition None
|
|
|
|
Until_Log_File
|
|
|
|
Until_Log_Pos 0
|
|
|
|
Master_SSL_Allowed No
|
|
|
|
Master_SSL_CA_File
|
|
|
|
Master_SSL_CA_Path
|
|
|
|
Master_SSL_Cert
|
|
|
|
Master_SSL_Cipher
|
|
|
|
Master_SSL_Key
|
|
|
|
Seconds_Behind_Master 0
|
|
|
|
Master_SSL_Verify_Server_Cert No
|
|
|
|
Last_IO_Errno 0
|
|
|
|
Last_IO_Error
|
|
|
|
Last_SQL_Errno 0
|
|
|
|
Last_SQL_Error
|
|
|
|
Replicate_Ignore_Server_Ids
|
|
|
|
Master_Server_Id 2
|
|
|
|
Master_SSL_Crl
|
|
|
|
Master_SSL_Crlpath
|
|
|
|
Using_Gtid No
|
|
|
|
Gtid_IO_Pos
|
|
|
|
Replicate_Do_Domain_Ids
|
|
|
|
Replicate_Ignore_Domain_Ids
|
|
|
|
Parallel_Mode optimistic
|
|
|
|
SQL_Delay 0
|
|
|
|
SQL_Remaining_Delay NULL
|
|
|
|
Slave_SQL_Running_State Slave has read all relay log; waiting for more updates
|
|
|
|
Slave_DDL_Groups 0
|
|
|
|
Slave_Non_Transactional_Groups 0
|
|
|
|
Slave_Transactional_Groups 0
|
|
|
|
Retried_transactions 0
|
|
|
|
Max_relay_log_size 1073741824
|
|
|
|
Executed_log_entries 7
|
|
|
|
Slave_received_heartbeats 0
|
|
|
|
Slave_heartbeat_period 60.000
|
|
|
|
Gtid_Slave_Pos
|
2012-10-03 01:44:54 +03:00
|
|
|
stop all slaves;
|
|
|
|
Warnings:
|
2012-10-11 07:01:44 +04:00
|
|
|
Note 1938 SLAVE 'slave2' stopped
|
2012-10-03 01:44:54 +03:00
|
|
|
show all slaves status;
|
2021-04-16 08:48:15 +05:30
|
|
|
Connection_name slave2
|
|
|
|
Slave_SQL_State
|
|
|
|
Slave_IO_State
|
|
|
|
Master_Host 127.0.0.1
|
|
|
|
Master_User root
|
|
|
|
Master_Port MYPORT_2
|
|
|
|
Connect_Retry 60
|
|
|
|
Master_Log_File master-bin.000001
|
|
|
|
Read_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_File mysqld-relay-bin-slave2.000002
|
|
|
|
Relay_Log_Pos <relay_log_pos>
|
|
|
|
Relay_Master_Log_File master-bin.000001
|
|
|
|
Slave_IO_Running No
|
|
|
|
Slave_SQL_Running No
|
|
|
|
Replicate_Do_DB
|
|
|
|
Replicate_Ignore_DB
|
|
|
|
Replicate_Do_Table
|
|
|
|
Replicate_Ignore_Table
|
|
|
|
Replicate_Wild_Do_Table
|
|
|
|
Replicate_Wild_Ignore_Table
|
|
|
|
Last_Errno 0
|
|
|
|
Last_Error
|
|
|
|
Skip_Counter 0
|
|
|
|
Exec_Master_Log_Pos <read_master_log_pos>
|
|
|
|
Relay_Log_Space <relay_log_space1>
|
|
|
|
Until_Condition None
|
|
|
|
Until_Log_File
|
|
|
|
Until_Log_Pos 0
|
|
|
|
Master_SSL_Allowed No
|
|
|
|
Master_SSL_CA_File
|
|
|
|
Master_SSL_CA_Path
|
|
|
|
Master_SSL_Cert
|
|
|
|
Master_SSL_Cipher
|
|
|
|
Master_SSL_Key
|
|
|
|
Seconds_Behind_Master NULL
|
|
|
|
Master_SSL_Verify_Server_Cert No
|
|
|
|
Last_IO_Errno 0
|
|
|
|
Last_IO_Error
|
|
|
|
Last_SQL_Errno 0
|
|
|
|
Last_SQL_Error
|
|
|
|
Replicate_Ignore_Server_Ids
|
|
|
|
Master_Server_Id 2
|
|
|
|
Master_SSL_Crl
|
|
|
|
Master_SSL_Crlpath
|
|
|
|
Using_Gtid No
|
|
|
|
Gtid_IO_Pos
|
|
|
|
Replicate_Do_Domain_Ids
|
|
|
|
Replicate_Ignore_Domain_Ids
|
|
|
|
Parallel_Mode optimistic
|
|
|
|
SQL_Delay 0
|
|
|
|
SQL_Remaining_Delay NULL
|
|
|
|
Slave_SQL_Running_State
|
|
|
|
Slave_DDL_Groups 0
|
|
|
|
Slave_Non_Transactional_Groups 0
|
|
|
|
Slave_Transactional_Groups 0
|
|
|
|
Retried_transactions 0
|
|
|
|
Max_relay_log_size 1073741824
|
|
|
|
Executed_log_entries 7
|
|
|
|
Slave_received_heartbeats 0
|
|
|
|
Slave_heartbeat_period 60.000
|
|
|
|
Gtid_Slave_Pos
|
2012-10-03 01:44:54 +03:00
|
|
|
stop all slaves;
|
2012-10-04 08:02:13 +04:00
|
|
|
include/reset_master_slave.inc
|
2016-03-25 20:51:22 +04:00
|
|
|
disconnect slave;
|
|
|
|
connection master1;
|
2012-10-04 08:02:13 +04:00
|
|
|
include/reset_master_slave.inc
|
2016-03-25 20:51:22 +04:00
|
|
|
disconnect master1;
|
|
|
|
connection master2;
|
2012-10-04 08:02:13 +04:00
|
|
|
include/reset_master_slave.inc
|
2016-03-25 20:51:22 +04:00
|
|
|
disconnect master2;
|