1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
#
# Set up masters server_1 and server_3 with server_2 being a slave.
#.
include/rpl_init.inc [topology=1->2,3->2]
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
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.
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
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.
[connection server_2]
#
# 1) Execute START SLAVE IO_THREAD; io_threads of all channels shall start
#
START SLAVE IO_THREAD;
Warnings:
Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
include/rpl_for_each_connection.inc [include/wait_for_slave_io_to_start.inc]
#
# 2) Execute START SLAVE SQL_THREAD; sql_threads of all channels shall start
#
START SLAVE SQL_THREAD;
Warnings:
Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
include/rpl_for_each_connection.inc [include/wait_for_slave_sql_to_start.inc]
#
# Do stop slave IO_thread. SQL threads must still be running
#
STOP SLAVE IO_THREAD;
Warnings:
Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
include/rpl_for_each_connection.inc [include/wait_for_slave_io_to_stop.inc]
#
# Do start slave. IO threads should be up independently.
#
START SLAVE;
Warnings:
Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
include/rpl_for_each_connection.inc [include/wait_for_slave_io_to_start.inc]
#
# Do STOP SLAVE. All slave threads for all channnels must be down.
#
STOP SLAVE;
Warnings:
Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
include/rpl_for_each_connection.inc [include/wait_for_slave_to_stop.inc]
#
# 3) Check start and stop FOR CHANNEL, the inc files wait till
# the threads are run. No Notes shall be emitted also.
#
# 3.a) Test START SLAVE IO_THREAD FOR CHANNEL
include/start_slave_io.inc [FOR CHANNEL 'channel_1']
# 3.b) Test START SLAVE SQL_THREAD FOR CHANNEL
include/start_slave_sql.inc [FOR CHANNEL 'channel_1']
# 3.c) Test STOP SLAVE IO_THREAD FOR CHANNEL
include/stop_slave_io.inc [FOR CHANNEL 'channel_1']
# 3.d) Test STOP SLAVE SQL_THREAD FOR CHANNEL
include/stop_slave_sql.inc [FOR CHANNEL 'channel_1']
include/rpl_end.inc
RESET REPLICA ALL FOR CHANNEL 'channel_1';
RESET REPLICA ALL FOR CHANNEL 'channel_3';
|