计算redo使用的比例

while true ; do mysql -h127.0.0.1 -usbtest -psbtest -Bse "show engine innodb status\G" | grep "flushed up to" | awk '{print $5}' | tr "\n" " " | awk '{ print ($1-$2)/1024.0/1024}'; sleep 1; done

posted @ 2022-01-23 17:56  友哥  阅读(45)  评论(0编辑  收藏  举报