database in c++

U

uday

How can we access databases from c++. i want to connect to database
from c++. can this be done by pro *c or is there any other way. does
mysql i can use.
 
M

Mike Wahler

uday said:
How can we access databases from c++. i want to connect to database
from c++. can this be done by pro *c or is there any other way. does
mysql i can use.

Yes, you can use mysql with C++. See www.mysql.com
and check the support resources.

-Mike
 
M

Mysidia

It is possible on platforms that support network connections,
in an environment dependant manner.

A common method is to use the MySQL++ library,
which is also probably the easiest way to connect to just
mysql,
See here:

http://dev.mysql.com/doc/plusplus/en/1_Introduction.html

Other choices are the C libraries like the MySQL client libraries

There are, of course, other more generic APIs/libraries that
might support MySQL. Libdbi comes to mind.

Regards

-Mysid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,186
Messages
2,570,998
Members
47,587
Latest member
JohnetteTa

Latest Threads

Top