PDA

View Full Version : need help Connecting to a mysql sever with c++


mrman11d
12-15-2009, 01:03 AM
Any suggestions on how i can do this. I know winsocks, but any ideas on setting up the sever to make it accessable.

oracleguy
12-15-2009, 04:16 PM
You wouldn't use sockets, at least not directly. MySQL provides a C library for connecting with a MySQL server: http://dev.mysql.com/downloads/connector/c/6.0.html

And if you want to use a more object orientated library, you can use MySQL++ (http://tangentsoft.net/mysql++/) which is a OOP wrapper over the MySQL C library.