How can I use Mysql in c++?
How can I use Mysql in c++?
You can use MySQL++
http://tangentsoft.net/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.
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?
Examples use some .h files i didnt get from the pack...
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.
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
If you are using Dev-C++ to access MySQL, it might be better for you to get the libmysql DevPak from here:Originally Posted by maxorator
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
--
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