Connecting Tech Pros Worldwide Help | Site Map

MySql an C++

begum
Guest
 
Posts: n/a
#1: Dec 7 '06
how can i connet my database in mysql with my C++ projcet.Can you give
me an example and what are the functions i have to use?

eriwik@student.chalmers.se
Guest
 
Posts: n/a
#2: Dec 7 '06

re: MySql an C++


On Dec 7, 1:09 pm, "begum" <begums...@gmail.comwrote:
Quote:
how can i connet my database in mysql with my C++ projcet.Can you give
me an example and what are the functions i have to use?
Start by looking at your mySQL-documentation, you'll probably find
everything you need there.

--
Erik Wikström

Brian C
Guest
 
Posts: n/a
#3: Dec 7 '06

re: MySql an C++


begum wrote:
Quote:
how can i connet my database in mysql with my C++ projcet.Can you give
me an example and what are the functions i have to use?
>
I would check the development documentation. But, basically, you'll need
to #include <mysql/mysql.h>, link "-lmysql" and then some functions you
would use would be "mysql_init()", "mysql_real_connect()",
"mysql_query()". The mysql.com website has a good reference for this.
Jim Langston
Guest
 
Posts: n/a
#4: Dec 8 '06

re: MySql an C++


"begum" <begumsele@gmail.comwrote in message
news:1165493384.082633.148890@f1g2000cwa.googlegro ups.com...
Quote:
how can i connet my database in mysql with my C++ projcet.Can you give
me an example and what are the functions i have to use?
The mysql website has plenty of documentation, and also when you download
MySQL there are sample programs included.

Also, you may wish to use mysql++

This is fairly off topic here, though, but the mysql website should give you
plenty of references.


Closed Thread