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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
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 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 master]
Create a replication user to use in change master tests.
CREATE USER replssl@localhost REQUIRE SSL;
GRANT REPLICATION SLAVE ON *.* TO replssl@localhost;
include/sync_slave_sql_with_master.inc
With both receiver and applier stopped, all CHANGE MASTER options should
be allowed.
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 0;
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.
Warning #### 'CHANGE MASTER TO ... IGNORE_SERVER_IDS='...' (when @@GLOBAL.GTID_MODE = ON)' is deprecated and will be removed in a future release.
CHANGE REPLICATION SOURCE TO RELAY_LOG_FILE= 'RELAY_LOG_FILE';
CHANGE REPLICATION SOURCE TO RELAY_LOG_POS= RELAY_LOG_POS;
CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 1;
CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 0;
With receiver stopped and applier running, we should be able to change
receiver options. Setting applier options should throw the correct error
message.
include/start_slave_sql.inc
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.
Warning #### 'CHANGE MASTER TO ... IGNORE_SERVER_IDS='...' (when @@GLOBAL.GTID_MODE = ON)' is deprecated and will be removed in a future release.
CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 1;
ERROR HY000: This operation cannot be performed with running replication threads; run STOP REPLICA FOR CHANNEL '' first
CHANGE REPLICATION SOURCE TO ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS = LOCAL;
ERROR HY000: This operation cannot be performed with running replication threads; run STOP REPLICA FOR CHANNEL '' first
CHANGE REPLICATION SOURCE TO RELAY_LOG_FILE= 'RELAY_LOG_FILE';
ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO RELAY_LOG_POS= RELAY_LOG_POS;
ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_DELAY= 10;
ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT= 1, RELAY_LOG_FILE= 'RELAY_LOG_FILE';
ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT= 1, RELAY_LOG_POS= RELAY_LOG_POS;
ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT= 1, SOURCE_DELAY=10;
ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD FOR CHANNEL '' first.
With applier stopped and receiver running, we should be able to change
applier options. Setting receiver options should throw the correct error
message.
include/stop_slave_sql.inc
include/start_slave_io.inc
CHANGE REPLICATION SOURCE TO RELAY_LOG_FILE= 'RELAY_LOG_FILE';
CHANGE REPLICATION SOURCE TO RELAY_LOG_POS= RELAY_LOG_POS;
CHANGE REPLICATION SOURCE TO SOURCE_DELAY= 10;
CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= 1;
ERROR HY000: This operation cannot be performed with running replication threads; run STOP REPLICA FOR CHANNEL '' first
CHANGE REPLICATION SOURCE TO SOURCE_HOST= 'localhost';
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_USER= 'replssl';
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_PASSWORD= '';
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_CONNECT_RETRY= 20;
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT= 1;
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_HEARTBEAT_PERIOD= 20;
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_SSL= 1;
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_SSL_VERIFY_SERVER_CERT= 1;
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_HOST= 'localhost';
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_USER= 'replssl';
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_PASSWORD= '';
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_CONNECT_RETRY= 20;
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_RETRY_COUNT= 1;
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_DELAY= 10, SOURCE_HEARTBEAT_PERIOD= 20;
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_DELAY=10, SOURCE_SSL=1;
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
CHANGE REPLICATION SOURCE TO SOURCE_DELAY= 10, SOURCE_SSL_VERIFY_SERVER_CERT= 1;
ERROR HY000: This operation cannot be performed with a running replica io thread; run STOP REPLICA IO_THREAD FOR CHANNEL '' first.
include/stop_slave.inc
cleanup
CHANGE REPLICATION SOURCE TO
SOURCE_HOST= '127.0.0.1',
SOURCE_USER= 'root',
SOURCE_DELAY= 0,
IGNORE_SERVER_IDS= (),
SOURCE_SSL= 0,
SOURCE_SSL_CA= '',
SOURCE_SSL_CERT= '',
SOURCE_SSL_KEY= '',
SOURCE_SSL_VERIFY_SERVER_CERT= 0;
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.
CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION= SAVE_AUTOPOSITION;
include/start_slave.inc
DROP USER replssl@localhost;
include/rpl_end.inc
|