Thread: help using mysql

  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    42

    help using mysql

    hey all,

    i need to write an aplication in C that connects a mysql database.

    I want to try compile it both on windows and linux (debian)...

    do i only need the mysql.h file and thats it?
    From what i read i think i need to install a developer library...

    the mysql manual says that the C connector is distributed with mysql... i checkd on mysql folder and i didnt found it...

    can anybody tell me the standard procedure?

    thx in advance

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > From what i read i think i need to install a developer library...
    Yes, you need some libraries as well if you want to produce an executable file.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    42
    ok... so where can i download those libraries for windows?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Same place as you got the mysql.h probably.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Feb 2004
    Posts
    42
    i dont know where to get it from... they say in the mysql manual that its distributed with mysql but in fact is not

  6. #6
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Location
    Still in the egg
    Posts
    275
    For Linux environment, the required libraries are provided by the source package of MySQL application (libmysqclient.a for example) As I know the RPM package does not include the libraries and I don't know any idea about the .DEB package!

    For Windows environment, I also could not find the required libraries (but did not make a good search actually!)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Change detection in MySQL.
    By amitbora27 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 05-13-2009, 10:34 AM
  2. MySQL libraries
    By csonx_p in forum C++ Programming
    Replies: 6
    Last Post: 10-02-2008, 02:23 AM
  3. About C++ and MySQL or oether free database
    By xxxrugby in forum C++ Programming
    Replies: 18
    Last Post: 12-30-2005, 06:28 AM
  4. Get data from mysql and use in a system.
    By smaakage in forum Tech Board
    Replies: 3
    Last Post: 10-04-2005, 12:03 PM
  5. Get data from mysql and use in a system.
    By smaakage in forum C++ Programming
    Replies: 5
    Last Post: 10-02-2005, 01:25 PM