MySQL Connector/C++ Developer Guide


This manual describes how to install and configure MySQL Connector/C++, the C++ interface for communicating with MySQL servers, and how to use it to develop database applications.

For notes detailing the changes in each release of Connector/C++, see MySQL Connector/C++ Release Notes.

For legal information, see the Legal Notices.

For help with using MySQL, please visit either the MySQL Forums or MySQL Mailing Lists, where you can discuss your issues with other MySQL users.

For additional documentation on MySQL products, including translations of the documentation into other languages, and downloadable versions in variety of formats, including HTML and PDF formats, see the MySQL Documentation Library.

Document generated on: 2015-11-21 (revision: 45595)

Table of Contents

Preface and Legal Notices
1 Introduction to Connector/C++
2 How to Get Connector/C++
3 Installing Connector/C++ from a Binary Distribution
4 Installing Connector/C++ from Source
4.1 Building Connector/C++ from Source on Unix, Solaris, and OS X
4.2 Building Connector/C++ from Source on Windows
4.3 Dynamically Linking Connector/C++ Against the MySQL Client Library
5 Building Connector/C++ Windows Applications with Microsoft Visual Studio
6 Building Connector/C++ Linux Applications with NetBeans
7 Connector/C++ Getting Started: Usage Examples
7.1 Connector/C++ Connecting to MySQL
7.2 Connector/C++ Running a Simple Query
7.3 Connector/C++ Fetching Results
7.4 Connector/C++ Using Prepared Statements
7.5 Connector/C++ Complete Example 1
7.6 Connector/C++ Complete Example 2
8 Connector/C++ Tutorials
8.1 Prerequisites and Background Information
8.2 Calling Stored Procedures with Statement Objects
8.3 Calling Stored Procedures with PreparedStatement Objects
9 Connector/C++ Debug Tracing
10 Connector/C++ Usage Notes
11 Connector/C++ Known Bugs and Issues
12 Connector/C++ Support
A Licenses for Third-Party Components
A.1 Boost Library License
A.2 OpenSSL v1.0 License