#!/bin/bash
a=$(mysql -e "show slave status\G" | awk '/Slave_IO_Running/ {print $2}')
b=$(mysql -e "show slave status\G" | awk '/Slave_SQL_Running/ {print $2}')

if [ $a == 'Yes' -a $a == $b ]; then
echo "yes"
else
echo "no"
fi

相关文章:

  • 2021-12-04
  • 2021-10-01
  • 2022-12-23
  • 2021-06-14
  • 2022-01-16
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2021-09-24
  • 2021-06-01
相关资源
相似解决方案