MySQLTuner-perl/build/deployOn
Jean-Marie Renouard 467e999a17 clean end line
2021-09-27 11:55:22 +02:00

12 lines
294 B
Bash
Executable file

#!/bin/bash
set -xv
_DIR=$(dirname `readlink -f $0`)
ssh $1 mkdir /images/mysqltuner
rsync -avz ${_DIR}/.. $1:/images/mysqltuner
if [ "$2" = "run" ];then
ssh $1 "su - mysql -c 'cd /images/mysqltuner; source /opt/mysql/myqenv myserver1;perl mysqltuner.pl --verbose --color'"
fi