Assuming you have a 32-bit version of the compiler, google for ODBC and you will get lots of information. ODBC is the most common way to access any database. There are several free c++ classes on MySql web site and www.codeproject.com . You can access ODBC from either C or C++, but I don't know how much information there is for just C.
You also need to study the SQL language -- google for that too.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343