Connect to server and get info from mysql db.

This is a discussion on Connect to server and get info from mysql db. within the C++ Programming forums, part of the General Programming Boards category; Hey, I want to make a c++ application that retrieves information from a mysql db on another server. How can ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    35

    Connect to server and get info from mysql db.

    Hey,

    I want to make a c++ application that retrieves information from a mysql db on another server. How can I make the client connect to the database? Is it possible for me to include a file thats on the server with the db login information? How should I do this? Also, once connected, how can I display data in the c++ application - how do I do the queries?

    Thanks in advance,

    Sam

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Go to the MySQL site and download thier C API.

    Or do a search on a C++ class library called MySQL++

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    35
    Thanks for the quick reply Fordy, I'll do that

Popular pages Recent additions subscribe to a feed

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