Skip to content

Instantly share code, notes, and snippets.

@eerien
Created September 2, 2014 03:42
Show Gist options
  • Save eerien/6eaf91ce4729e9e6b380 to your computer and use it in GitHub Desktop.
Save eerien/6eaf91ce4729e9e6b380 to your computer and use it in GitHub Desktop.
MySQL Ping script
#!/bin/bash
mysqladmin -h$1 -u$2 -p$3 ping | grep -c alive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment