35 lines
2.1 KiB
Plaintext
35 lines
2.1 KiB
Plaintext
include/master-slave.inc
|
|
Warnings:
|
|
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
|
|
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.
|
|
[connection master]
|
|
SET DEBUG_SYNC= 'RESET';
|
|
include/stop_slave.inc
|
|
set global debug= 'd,dbug.before_get_running_status_yes';
|
|
Slave_running, Slave_IO_Running, Slave_SQL_Running, must be OFF, NO, NO in three following queries
|
|
select rcs.SERVICE_STATE as Slave_IO_Running, ras.SERVICE_STATE as Slave_SQL_Running from performance_schema.replication_applier_status ras, performance_schema.replication_connection_status rcs;
|
|
Slave_IO_Running Slave_SQL_Running
|
|
OFF OFF
|
|
start slave io_thread;
|
|
Slave_running, Slave_IO_Running, Slave_SQL_Running must be OFF Connecting NO in three following queries
|
|
select rcs.SERVICE_STATE as Slave_IO_Running, ras.SERVICE_STATE as Slave_SQL_Running from performance_schema.replication_applier_status ras, performance_schema.replication_connection_status rcs;
|
|
Slave_IO_Running Slave_SQL_Running
|
|
CONNECTING OFF
|
|
SET DEBUG_SYNC='now SIGNAL signal.io_thread_let_running';
|
|
include/wait_for_slave_param.inc [Slave_IO_Running]
|
|
Slave_running, Slave_IO_Running, Slave_SQL_Running must be OFF YES NO in three following queries
|
|
select rcs.SERVICE_STATE as Slave_IO_Running, ras.SERVICE_STATE as Slave_SQL_Running from performance_schema.replication_applier_status ras, performance_schema.replication_connection_status rcs;
|
|
Slave_IO_Running Slave_SQL_Running
|
|
ON OFF
|
|
start slave sql_thread;
|
|
include/wait_for_slave_sql_to_start.inc
|
|
Slave_running, Slave_IO_Running, Slave_SQL_Running must be ON, YES, YES in three following queries
|
|
select rcs.SERVICE_STATE as Slave_IO_Running, ras.SERVICE_STATE as Slave_SQL_Running from performance_schema.replication_applier_status ras, performance_schema.replication_connection_status rcs;
|
|
Slave_IO_Running Slave_SQL_Running
|
|
ON ON
|
|
include/sync_slave_sql_with_master.inc
|
|
set global debug= '';
|
|
SET DEBUG_SYNC= 'RESET';
|
|
End of tests
|
|
include/rpl_end.inc
|