Skip to content

Instantly share code, notes, and snippets.

View nithinbasavarajappa's full-sized avatar
💭
Goes on.....

nithinbasavarajappa

💭
Goes on.....
View GitHub Profile
@nithinbasavarajappa
nithinbasavarajappa / mysqlchk_status.sh
Created November 28, 2017 13:00 — forked from aw/mysqlchk_status.sh
Check if a MySQL server is healthy
#!/bin/bash
#
# This script checks if a mysql server is healthy running on localhost. It will
# return:
#
# "HTTP/1.x 200 OK\r" (if mysql is running smoothly)
#
# - OR -
#
# "HTTP/1.x 500 Internal Server Error\r" (else)