部署MHA

yum install perl-DBD-MySQL -y
 rpm -ivh mha4mysql-node-0.56-0.el6.noarch.rpm 
 mysql -uroot -p123
 ln -s /usr/local/mysql/bin/mysql /usr/bin/
 rm /usr/bin/mysql
 ln -s /usr/local/mysql/bin/mysql /usr/bin/
 ln -s /usr/local/mysql/bin/mysqlbinlog /usr/bin/
 rm /usr/bin/mysqlbinlog 
 ln -s /usr/local/mysql/bin/mysqlbinlog /usr/bin/
 ll /usr/bin/mysql*
  yum install -y perl-Config-Tiny epel-release perl-Log-Dispatch perl-Parallel-ForkManager perl-Time-HiRes
 rz -E
 ll
 rpm -ivh mha4mysql-manager-0.56-0.el6.noarch.rpm

相关推荐