I hacked this together using an example of a simple tcp service on the web written in C, to create a self serving web page which would post a query to a mysql database when the url is hit.
Features
- Ability to specify listening port as a command line argument
- Connect and Query to a MySQL database without a LAMP stack
Follow MP MySQL C API Check
Other Useful Business Software
AI-powered service management for IT and enterprise teams
Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity. Maximize operational efficiency with refreshingly simple, AI-powered Freshservice.
Rate This Project
Login To Rate This Project
User Reviews
-
this is a great way to run a light monitoring service where you can check whats in a DB without needing the complete MySQL/PHP stack or even a webserver, as this does it all by itself. Then all you need to do is curl to the address:port that you run the service on and the programme can give you back a true if the entry is valid or fail the test if not.