find /usr/local/mysql/var -mtime +2 -name "k8sData@*.log" -type f -exec grep -nE '*\bConnect\b*'>test.log {} \;
你这写法不OK吗? 看上去没大问题哦