mysql-master-ha安装脚本

 

cd /root
wget http://mysql-master-ha.googlecode.com/files/mha4mysql-node-0.53.tar.gz
wget http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.021.tar.gz
echo "export PATH=/apps/mysql/bin:/usr/local/bin:$PATH" >>/etc/profile
source /etc/profile
echo "/apps/mysql/lib" >> /etc/ld.so.conf
ldconfig

tar -zxvf DBD-mysql-4.021.tar.gz
cd DBD-mysql-4.021
perl  Makefile.PL
make
make test
make install

cd ..
tar -zxvf mha4mysql-node-0.53.tar.gz
cd mha4mysql-node-0.53
perl  Makefile.PL
make
make install