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
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
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.