2022-11-03 10:03:30

This commit is contained in:
2022-11-03 10:03:30 -04:00
commit 3cfd912784
5 changed files with 81 additions and 0 deletions

2
showslavestats Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
mysql -e 'SHOW SLAVE STATUS\G' | tee /dev/stderr | grep 'Seconds_Behind_Master' | cut -d':' -f2 | read seconds && eval "echo $(date -ud "@$seconds" +'$((%s/3600/24)) days %H hours %M minutes %S seconds')"