Provided by: mha4mysql-manager_0.58-1.1_all bug

NAME

       masterha_master_switch - Switching MySQL master server to one of other slave servers

SYNOPSIS

       # For master failover

       masterha_master_switch --master_state=dead --global_conf=/etc/masterha_default.cnf
       --conf=/usr/local/masterha/conf/app1.cnf --dead_master_host=host1

       # For online master switch

       masterha_master_switch --master_state=alive --global_conf=/etc/masterha_default.cnf
       --conf=/usr/local/masterha/conf/app1.cnf

       See online reference
       (http://code.google.com/p/mysql-master-ha/wiki/masterha_master_switch) for details.

DESCRIPTION

       See online reference
       (http://code.google.com/p/mysql-master-ha/wiki/masterha_master_switch) for details.