Connecting Tech Pros Worldwide Help | Site Map

MySql an C++

  #1  
Old December 7th, 2006, 11:45 AM
begum
Guest
 
Posts: n/a
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?

  #2  
Old December 7th, 2006, 01:15 PM
eriwik@student.chalmers.se
Guest
 
Posts: n/a

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

  #3  
Old December 7th, 2006, 10:35 PM
Brian C
Guest
 
Posts: n/a

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.
  #4  
Old December 8th, 2006, 02:25 PM
Jim Langston
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing MS Access into MySQL on Mac? Vik Rubenfeld answers 5 August 4th, 2007 02:05 PM
Ever installed MySQL on a network drive? Strange error! Jonathan answers 0 July 19th, 2005 11:44 PM
Converting from MySQL commands to Oracle: HELP! Mark Wilson CPU answers 4 July 17th, 2005 10:53 AM
Using PHP & MySQL to display web pages AF answers 7 July 17th, 2005 06:11 AM