2022-11-03 10:03:30
This commit is contained in:
2
showslavestats
Normal file
2
showslavestats
Normal 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')"
|
||||
Reference in New Issue
Block a user