Home arrow C++ arrow Building a Store Application With MySQL++ and C/C++
C++

Building a Store Application With MySQL++ and C/C++


MySQL is a great cross platform database solution. One of the reasons why MySQL is so popular is because it can be accessed from so many programming languages -- including C/C++. In this article Igal shows us how to download, install and use MySQL++, which is a C library that allows us to work with MySQL databases. Igal starts with basic connection principles and works up to creating a fully interactive product store application.

Author Info:
By: Igal Raizman
Rating: 5 stars5 stars5 stars5 stars5 stars / 90
March 17, 2002
TABLE OF CONTENTS:
  1. · Building a Store Application With MySQL++ and C/C++
  2. · Preparing the database
  3. · A basic program
  4. · Bringing it all together
  5. · Cases 2 and 3
  6. · Cases 4, 5 and 6
  7. · Conclusion

print this article
SEARCH DEVARTICLES

Building a Store Application With MySQL++ and C/C++
(Page 1 of 7 )

So, you've been accepted into your dream job: great pay, amazing benefits and your doing something that you actually like -- sounds great doesn't it. But all of this shatters when you walk into your first conference meeting only to find out that this is a PHP-free zone.

In fact, even Perl, ASP and Java are a no-go. As you continue to seat through your initial project meeting, you hear that the required site/application must handle a gazillion people a day (whether they come or not is unimportantů if you build it they will come). With all due respect to PHP and Perl, the company needs speed, and more importantly they need compiled speed.

Say a big hello to C/C++ and the MySQL++ library. In this article we will create a simple database driven application using the C MySQL++ library provided by the good folks over at MySQL AB, which are the developers of the MySQL DBMS. Our goal will be to create a simple products database for an online store.

I will make the following assumptions in this article:
  • You have MySQL installed and running on your local machine.
  • You have a bare minimum knowledge of SQL.
  • You are familiar with C/C++.
  • You know how to use your C/C++ compiler.
So, if you're willing to take the plunge, then let's move on.
blog comments powered by Disqus
C++ ARTICLES

- Intel Threading Building Blocks
- Threading Building Blocks with C++
- Video Memory Programming in Text Mode
- More Tricks to Gain Speed in Programming Con...
- Easy and Efficient Programming for Contests
- Preparing For Programming Contests
- Programming Contests: Why Bother?
- Polymorphism in C++
- Overview of Virtual Functions
- Inheritance in C++
- Extending the Basic Streams in C++
- Using Stringstreams in C++
- Custom Stream Manipulation in C++
- General Stream Manipulation in C++
- Serialize Your Class into Streams in C++

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials