Exforsys

Online Training

Help Needed to Connect to Database

This is a discussion on Help Needed to Connect to Database within the C and C++ forums, part of the Programming Talk category; I want to connect to MYSQL in my C program so that I can do some database operations using my ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-22-2007, 07:01 AM
Senior Member
 
Join Date: Apr 2006
Posts: 153
cyrus is on a distinguished road
Help Needed to Connect to Database

I want to connect to MYSQL in my C program so that I can do some database operations using my C program itself. How can I connect to MYSQL from my C program. Someone help in achieving the connection to the database.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-28-2007, 03:26 PM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
You can make use of connect_to_mysql to connect to SQL from your C program. For this you must include the header file named as mysqlfunc.h. The syntax of using connect_to_mysql is given below:
mysqlconn = connect_to_mysql(mysqlconn);

Try and let me know if you need further help in this regard.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Comp.software-eng FAQ (Part 0): periodic postings and archives David Alex Lamb Tech FAQ 2 05-23-2004 06:15 AM
FAQ: How to find people's E-mail addresses David Alex Lamb Tech FAQ 0 05-02-2004 06:30 AM
Comp.software-eng FAQ (Part 0): periodic postings and archives David Alex Lamb Tech FAQ 3 04-18-2004 06:15 AM
Kerberos FAQ, v2.0 (last modified 8/18/2000) Ken Hornstein Tech FAQ 0 04-17-2004 08:28 AM
[FAQ] FileMaker Pro - database for Macintosh and Windows Martin Trautmann Tech FAQ 0 04-17-2004 08:26 AM


All times are GMT -4. The time now is 07:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.