#!/bin/bash
while true
do
starttime=`date "+%s%N"`
/home/mysql/mysql8890/bin/mysql --defaults-extra-file=/home/mysql/mysql8890/etc/user.root.cnf -e "select 1"
endtime=`date "+%s%N"`
dur=`expr \( $endtime - $starttime \) / 1000000`
echo "$dur ms"
sleep 5
done
阅读(1293) | 评论(0) | 转发(0) |