Building a Store Application With MySQL++ and C/C++
(Page 1 of 7 )
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.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.
Next: Preparing the database >>
More C++ Articles
More By Igal Raizman