C/C++ program to connect to Mysql server

vineet_soliwal's Avatar
Newbie Member
Hi guys, I need to write C/C++ program that connects to a Mysql server and lists all the hosts connected to it at that point.

It's for an assignment and its pretty urgent. I'll be grateful if someone could help me out with that. Thanks in advance
xpi0t0s's Avatar, Join Date: Aug 2004
How far have you got and where are you stuck?

Do you know how to write a simple program to connect to MySQL? If not, try looking up some of the sample programs that are included with MySQL.

Do you know how to find a host that is connected to MySQL?