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
You Might Also Like
Our Free Plans just got better! | Auth0 by Okta
You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
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.