C++ connection to MySQL

This is a discussion on C++ connection to MySQL within the C++ Programming forums, part of the General Programming Boards category; I have been searching the net for a way to connect to a MySQL database from a C++ program i ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    4

    C++ connection to MySQL

    I have been searching the net for a way to connect to a MySQL database from a C++ program i am writing using Win32 MFC. Im using VS.net. Has anyone ever done this before? I don't want to use a DSN, i would like it to be a DNSless connection.
    If you know of some exaples somewhere can you post them here?

    Thanks

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Go to MSDN and look for the System.Data.* namespaces. There are three different ones for SQL (System.Data.SQLCLient, etc..), and some others for Oracle, etc... These will give you the function to communicate with a database from your program.

  3. #3
    Stinking it up. StinkyRyan's Avatar
    Join Date
    Jun 2004
    Posts
    61
    mysql++

    http://dev.mysql.com

    it is there somewhere
    Because I can't.

  4. #4
    Registered User
    Join Date
    Dec 2003
    Posts
    50
    Yes, you could use MySQL++, the download URL is:
    http://dev.mysql.com/downloads/other...lus/index.html

    There is a pre-compiled version for Visual C++ contributed by LazyFox. It is for version 1.7.1.

  5. #5
    Web Developer
    Join Date
    Mar 2005
    Location
    Vancouver, Canada
    Posts
    24
    I can't find any description documentation on how to install it. Even the ReadMe doesn't explain the installation process very well.

    Could anyone please help me out? I googled it already and I keep ending up at message boards with unanswered questions like mine.
    Jaime Bueza
    Bueza Web Development
    "Ingenuity without sacrificing accessibility, efficiency, or quality."


    University: British Columbia Institute of Technology (BCIT)
    Program: Computer Systems Technology
    Specialization: Relational Database Systems
    Term: 2 / 4

  6. #6
    Registered User
    Join Date
    Dec 2003
    Posts
    50

    MySQL++ now compiles with Visual C++ 7.1

    For more information, check out this URL:

    http://tangentsoft.net/mysql++/


    Best Regards,
    Yeoh
    --

  7. #7
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    BuezaWebDev, please do not post in threads that have been inactive for long periods of time - it causes confusion and prevents active threads from getting their fair share of attention. Instead, start a new thread, and if necessary (I wouldn't have said it would be in this case), you may want to link to a previous thread.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Global mySQL connection function
    By redixe in forum C++ Programming
    Replies: 13
    Last Post: 10-28-2008, 08:02 AM
  2. MySQL libraries
    By csonx_p in forum C++ Programming
    Replies: 6
    Last Post: 10-02-2008, 03:23 AM
  3. Get data from mysql and use in a system.
    By smaakage in forum Tech Board
    Replies: 3
    Last Post: 10-04-2005, 01:03 PM
  4. Get data from mysql and use in a system.
    By smaakage in forum C++ Programming
    Replies: 5
    Last Post: 10-02-2005, 02:25 PM
  5. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 05:25 AM

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