Check it out here:https://sourceforge.net/projects/mysqlcapicheck/
I wrote this so that I could integrate it with network monitoring systems that needed to curl a url to get their answer, knowing that some of the checks I needed to do were to see not only that the database was up, but that I could still query specific tables/look for a specific value without needing to login/have web services running just to get a simple answer.
And I wanted to make it ‘light’.