Connecting to MySQL Database

This is a discussion on Connecting to MySQL Database within the C++ Programming forums, part of the General Programming Boards category; Hello, I have a program (that was created by William Mcleary, I am helping in the creation though) that needs ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    2

    Question Connecting to MySQL Database

    Hello,

    I have a program (that was created by William Mcleary, I am helping in the creation though) that needs to connect to a MySQL database and I guess I would use a DSN but I only know how to do it in ASP. Does anyone know how to connect to databases in C++ or know where I can find out? Thank You.

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    156
    Look into OLE DB or ODBC. There are lots of examples for both on MSDN.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    12
    go here: www.webmonkey.com
    they have some MySql tutorials, but i think they are linux.... dunno if thats good, considering using ASP, i'd assume no

  4. #4
    Unregistered
    Guest
    you can use the standard mysql API, which comes with the mysql package. Download the appropriate documentations from www.mysql.org. You can ever use myODBC API, if you wanna make you code more portable....

  5. #5
    Registered User
    Join Date
    Oct 2001
    Posts
    2

    Post

    Thank you all of you but I have gotten the connection already. And by the way, don't use MySQL.org, go to MySQL.com. That is the official MySQL web site. All I had to do to connect was download the library files from mysql.com in a special package called MySQL++. ThaNx all.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Connecting to a mySQL database using C#
    By Mavix in forum C# Programming
    Replies: 2
    Last Post: 11-26-2007, 05:19 AM
  2. Error connecting from Dev C++ to MS Access Database
    By Sridar in forum C++ Programming
    Replies: 0
    Last Post: 04-15-2006, 06:09 PM
  3. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 09:33 AM
  4. Problem connecting to MySQL Database?
    By MrLucky in forum C++ Programming
    Replies: 5
    Last Post: 01-30-2006, 10:30 AM
  5. About C++ and MySQL or oether free database
    By xxxrugby in forum C++ Programming
    Replies: 18
    Last Post: 12-30-2005, 05:28 AM

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