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] # # Test Case 1: master_user has no privilege # CREATE USER rpl_user; include/sync_slave_sql_with_master.inc include/stop_slave_io.inc CHANGE REPLICATION SOURCE TO SOURCE_USER='rpl_user'; 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=13120] CALL mtr.add_suppression(".*Replica I/O thread couldn't register on source.*"); CALL mtr.add_suppression(".* Source command COM_REGISTER_REPLICA failed.*"); # # Test Case 2: IO thread is killed when registering to master # CHANGE REPLICATION SOURCE TO 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. SET GLOBAL debug = '+d,simulate_register_replica_killed'; 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_to_stop.inc SET GLOBAL debug = '-d,simulate_register_replica_killed'; include/start_slave_io.inc [connection master] DROP USER rpl_user; include/rpl_end.inc