Retrieving data from a MySQL database

  • Thread starter Thread starter Rao TRN
  • Start date Start date
R

Rao TRN

In broad sense, grabbing data from MySQL is not much different than grabbing
data from another RDBMS. I found some client libraries on MySQL site which
take care of communication between VC++ and the remore mySQL database. Check
the developer tools at the MySQL web site for more information.
 
Is it possible to grab data from a MySQL database and print it on the screen
with VC++? The database is on a linux server if that would make any
difference.
 
I do remember that they had a C API which allowed to to directly access the
MySQL DB server and do what you wanted. Also vagueley remember a C++ wrapper
they provided for the C API. Alternatively they also provided something
called MyODBC which was a set of ODBC drivers for MySQL. The easiest way to
make sure if all this still exists, would be to check out their web site
 
I do remember that they had a C API which allowed to to directly access the
MySQL DB server and do what you wanted. Also vagueley remember a C++ wrapper
they provided for the C API. Alternatively they also provided something
called MyODBC which was a set of ODBC drivers for MySQL. The easiest way to
make sure if all this still exists, would be to check out their web site
 
Bryan Powell said:
Is it possible to grab data from a MySQL database and print it on the screen
with VC++? The database is on a linux server if that would make any
difference.

Grab MyODBC from their website and just use the standard
CDatabase/CRecordset classes would be the easiest.
 
Back
Top