The mysqlrpladmin utility allows users to
specify a script to execute before and after the failover and
switchover operations using the
respectively. Note that the script specified using the
exec-after option only runs in case the switchover/failover
We can use the mysqlrpladmin utility to start and stop all the slaves with the start/stop commands. Using the stop command only stops servers that are actually slaves of the specified master thus preventing us from stopping unwanted servers.