diff --git a/maxscale-system-test/mariadb_nodes.cpp b/maxscale-system-test/mariadb_nodes.cpp index 79718de32..9cc2b083b 100644 --- a/maxscale-system-test/mariadb_nodes.cpp +++ b/maxscale-system-test/mariadb_nodes.cpp @@ -376,6 +376,8 @@ int Mariadb_nodes::start_replication() printf("Starting node %d\n", i); fflush(stdout); copy_to_node_legacy(str, "/tmp/master_backup.sql", i); + ssh_node_f(i, true, "mysql --force -u root %s -e \"STOP SLAVE;\"", + socket_cmd[i]); ssh_node_f(i, true, "mysql --force -u root %s < /tmp/master_backup.sql", socket_cmd[i]); ssh_node_f(i, true, "mysql --force -u root %s -e \"CHANGE MASTER TO MASTER_HOST=\\\"%s\\\", MASTER_PORT=%d, "