MySQL header problems

This is a discussion on MySQL header problems within the C Programming forums, part of the General Programming Boards category; Hi, I relatively new to C, and want to connect to/query a MySQL server. I have MySQL installed on my ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    11

    MySQL header problems

    Hi,

    I relatively new to C, and want to connect to/query a MySQL server. I have MySQL installed on my pc (Ubuntu), and it works fine with PHP, but following this tutorial: http://www.ucl.ac.uk/is/mysql/c/ I dont have mysql.h on my pc, and cant find it anywhere. Any help would be appreciated.

    Thanks,
    Nick

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    You will need the MySQL C API. Searching google might help you on that one.

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    11
    I'v tried... and all it points me to is the ODBC stuff, but the header isnt there

  4. #4
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    http://dev.mysql.com/downloads/mysql/5.0.html

    Get the right download, looks like their's an Ubuntu download. There'll be a /include/ folder full of includes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MySQL C API Header File Problems
    By WarrenKeyes3 in forum C Programming
    Replies: 3
    Last Post: 03-26-2009, 02:26 PM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. Problems in reading binary file
    By serena in forum C Programming
    Replies: 3
    Last Post: 04-14-2005, 03:54 AM
  4. Many Header Files
    By matth in forum C++ Programming
    Replies: 3
    Last Post: 03-08-2005, 01:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21