Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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

  1. #1
    cyrus is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    128

    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.


  2. #2
    caradoc is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    122
    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.


Latest Article

Network Security Risk Assessment and Measurement

Read More...