Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 7th, 2006, 11:45 AM
begum
Guest
 
Posts: n/a
Default MySql an C++

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
Default 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
Default 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
Default 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.


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles