Accessing MYSQL

This is a discussion on Accessing MYSQL within the C++ Programming forums, part of the General Programming Boards category; How can I use Mysql in c++?...

  1. #1
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318

    Accessing MYSQL

    How can I use Mysql in c++?

  2. #2
    Registered User
    Join Date
    Dec 2003
    Posts
    50
    You can use MySQL++

    MySQL++ is a C++ wrapper for MySQL's C API. It is built around STL principles, to make dealing with the database as easy as dealing with an STL container.
    http://tangentsoft.net/mysql++/

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    How can I use mysql++? I downloaded the package, and what can I do with those files? I copied all the files from lib folder to include folder. What file do I need to include? Does it even work with Dev-c++? What are those config files for? What are make.bat and makemake.bat for?

  4. #4
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Examples use some .h files i didnt get from the pack...

  5. #5
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    One thing you need to learn is that programming isn't just about sitting in front a a screen typing code until it works. A lot of the work is reading and understanding documentation.

    On the page provided, scroll down to the "Documentation" section. Follow the link to the online version. Read it.

    If you have problems understanding the tutorial section there, post the tutorial, highlight the specific part you have problems with, post your attempts at solving them, your progress and the error message.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    You can also use the straight MySQL C API.

    If you are on window, you might also want to look up ODBC, DAO or ADO

  7. #7
    Registered User
    Join Date
    Dec 2003
    Posts
    50
    Quote Originally Posted by maxorator
    Does it even work with Dev-c++?
    If you are using Dev-C++ to access MySQL, it might be better for you to get the libmysql DevPak from here:
    http://devpaks.org/category.php?category=Database

    Dev-C++'s Package Manager will then install the correct DLL import library and header files to your Dev-C++ installation. This DevPak allows you to use the MySQL C API functions in your Dev-C++ program. For details about the MySQL C API, you should download MySQL.

    Best Regards,
    Yeoh
    --

  8. #8
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Thanks

  9. #9
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    Here's the MySQL C API Reference: http://dev.mysql.com/doc/mysql/en/c.html
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

  10. #10
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MySQL libraries
    By csonx_p in forum C++ Programming
    Replies: 6
    Last Post: 10-02-2008, 03:23 AM
  2. can`t get mysql functions working in c++
    By markg85 in forum C++ Programming
    Replies: 4
    Last Post: 05-29-2006, 03:09 PM
  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, 01: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, 02:25 PM

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