Thread: Connect to server and get info from mysql db.

  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,793
    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