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
|
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]
CHANGE REPLICATION SOURCE TO SOURCE_CONNECT_RETRY = 1, SOURCE_RETRY_COUNT = 1;
#### Test 1: invalid credentials ####
[connection slave]
CHANGE REPLICATION SOURCE TO SOURCE_USER = 'foo';
Warnings:
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
Note 1760 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.
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/wait_for_slave_io_error.inc [errno=1045]
---- Check performance_schema ----
include/assert.inc [Error should contain the reason (Access denied for user foo) for connection failure]
---- Check SHOW SLAVE STATUS ----
include/assert.inc [Error should contain the reason (Access denied for user foo) for connection failure]
---- Check that messages are the same in both places ----
include/assert.inc [Error should be the same in both SSS and P_S]
#### Test 2: invalid port ####
[connection slave]
CHANGE REPLICATION SOURCE TO SOURCE_PORT = 1;
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/wait_for_slave_io_error.inc [errno=2003 # CR_CONN_HOST_ERROR]
---- Check performance_schema ----
include/assert.inc [Error should contain the reason (Cant connect to MySQL server on) for connection failure]
---- Check SHOW SLAVE STATUS ----
include/assert.inc [Error should contain the reason (Cant connect to MySQL server on) for connection failure]
---- Check that messages are the same in both places ----
include/assert.inc [Error should be the same in both SSS and P_S]
#### Test 3: invalid host ####
[connection slave]
CHANGE REPLICATION SOURCE TO SOURCE_HOST = '999.999.999.999';
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/wait_for_slave_io_error.inc [errno=2005 # CR_UNKNOWN_HOST]
---- Check performance_schema ----
include/assert.inc [Error should contain the reason (Unknown MySQL server host) for connection failure]
---- Check SHOW SLAVE STATUS ----
include/assert.inc [Error should contain the reason (Unknown MySQL server host) for connection failure]
---- Check that messages are the same in both places ----
include/assert.inc [Error should be the same in both SSS and P_S]
#### Clean up ####
RESET SLAVE;
Warnings:
Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
CHANGE REPLICATION SOURCE TO SOURCE_HOST = '127.0.0.1', SOURCE_PORT = PORT, SOURCE_USER = 'root';
Warnings:
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
Note 1760 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.
include/start_slave.inc
include/rpl_end.inc
|