

For MySQL Server, you can download the msi installer and install it. We assume you have already installed Visual Studio 2010. Download all the necessaries files and libraries. So we choose MySQL Connector/C++ 1.1.0 here.

Note : MySQL Connector/C++ 1.1.0 needs boost libraries to work correctly, while MySQL Connector/C++ 1.0.5 doesn't need boost, but it causes runtime error when reading data from database. MySQL Connector/C++ 1.1.0 (don't use MySQL Connector/C++ 1.0.5).

After tried many times, I finally made my C++ program successfully connect to MySQL database with Visual Studio 2010. When we want to build a database application with C++ using Visual Studio 2010, we may use the MySQL Connector/C++, but sometimes we may encounter different errors, either compile or runtime error. The MySQL connector for C++ provides an object-oriented application programming interface (API) and a database driver for connecting C++ applications to the MySQL Server. MySQL Connector/C++ is one of the latest connectors for MySQL, developed by Sun Microsystems.
