mysqlreport 安装

#!/bin/bash
cd /data/backup
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release*rpm
yum -y install mysqlreport


#用法
SOCKET=/data/mysql/3306/mysql.sock

ip=192.168.26.10
echo -e "mysqlreport --help"
echo -e "mysqlreport --user $ROOT --password '$PW' --socket $SOCKET "
echo -e "mysqlreport --user $ROOT --password '$PW' --host $ip --port 3306"

你可能感兴趣的:(mysqlreport)