| 1 |
--source include/master-slave.inc |
| 2 |
--source include/have_binlog_format_mixed.inc |
| 3 |
|
| 4 |
# |
| 5 |
# BUG#13427949: CHANGE MASTER TO USER='' (EMPTY USER) CAUSES ERRORS ON VALGRING |
| 6 |
# |
| 7 |
|
| 8 |
--connection slave |
| 9 |
call mtr.add_suppression(".*Invalid .* username when attempting to connect to the source server.*"); |
| 10 |
|
| 11 |
|
| 12 |
# Assert that we disallow empty users and that no problem |
| 13 |
--source include/stop_slave.inc |
| 14 |
--replace_column 2 #### |
| 15 |
CHANGE REPLICATION SOURCE TO SOURCE_USER= '', SOURCE_PASSWORD= ''; |
| 16 |
START SLAVE; |
| 17 |
--let $slave_io_errno= 1045, 13117 |
| 18 |
--source include/wait_for_slave_io_error.inc |
| 19 |
--source include/stop_slave_sql.inc |
| 20 |
|
| 21 |
--replace_column 2 #### |
| 22 |
CHANGE REPLICATION SOURCE TO SOURCE_USER= 'root', SOURCE_PASSWORD= ''; |
| 23 |
START SLAVE; |
| 24 |
|
| 25 |
--source include/rpl_end.inc |