| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection slave; |
| 4 |
include/stop_slave.inc |
| 5 |
connection master; |
| 6 |
create user 'repl_user' password expire; |
| 7 |
grant replication slave on *.* to repl_user; |
| 8 |
flush privileges; |
| 9 |
set global disconnect_on_expired_password=ON; |
| 10 |
connection slave; |
| 11 |
CHANGE MASTER TO MASTER_USER= 'repl_user'; |
| 12 |
START SLAVE; |
| 13 |
include/wait_for_slave_io_error.inc [errno=1862] |
| 14 |
include/stop_slave_sql.inc |
| 15 |
RESET SLAVE; |
| 16 |
connection master; |
| 17 |
set global disconnect_on_expired_password=OFF; |
| 18 |
connection slave; |
| 19 |
START SLAVE; |
| 20 |
include/wait_for_slave_io_error.inc [errno=1820] |
| 21 |
connection master; |
| 22 |
DROP USER 'repl_user'; |
| 23 |
set global disconnect_on_expired_password=default; |
| 24 |
connection slave; |
| 25 |
include/stop_slave_sql.inc |
| 26 |
CHANGE MASTER TO MASTER_USER='root'; |
| 27 |
RESET SLAVE; |
| 28 |
include/rpl_end.inc |