logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

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

perl v5.36.0                                       2023-10-03                         MASTERHA_MASTER_SWITCH(1p)

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.

See Also