MySQL Connector/C++ Developer Guide

Abstract

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.

Licensing information.  This product may include third-party software, used under license. If you are using a Commercial release of MySQL Connector/C++, see this document for licensing information, including licensing information relating to third-party software that may be included in this Commercial release. If you are using a Community release of MySQL Connector/C++, see this document for licensing information, including licensing information relating to third-party software that may be included in this Community release.

Document generated on: 2016-06-15 (revision: 47943)


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 Source Installation System Prerequisites
4.2 Obtaining and Unpacking a Connector/C++ Source Distribution
4.3 Installing Connector/C++ from Source on Unix and Unix-Like Systems
4.4 Installing Connector/C++ from Source on Windows
4.5 Troubleshooting Connector/C++ Source Installation Problems
4.6 Dynamically Linking Connector/C++ Against the MySQL Client Library
4.7 Connector/C++ Source-Configuration Options
5 Building Connector/C++ Windows Applications with Microsoft Visual Studio
6 Building Connector/C++ Linux Applications with NetBeans
7 Getting Started with Connector/C++: Usage Examples
7.1 Connecting to MySQL
7.2 Running a Simple Query
7.3 Fetching Results
7.4 Using Prepared Statements
7.5 Complete Example 1
7.6 Complete Example 2
8 Connector/C++ Tutorials
8.1 Prerequisites and Background Information
8.2 Calling Stored Procedures with Statement Objects
8.2.1 Using a Statement for a Stored Procedure That Returns No Result
8.2.2 Using a Statement for a Stored Procedure That Returns an Output Parameter
8.2.3 Using a Statement for a Stored Procedure That Returns a Result Set
8.3 Calling Stored Procedures with PreparedStatement Objects
8.3.1 Using a PreparedStatement for a Stored Procedure That Returns No Result
8.3.2 Using a PreparedStatement for a Stored Procedure That Returns an Output Parameter
8.3.3 Using a PreparedStatement for a Stored Procedure That Returns a Result Set
9 Connector/C++ Debug Tracing
10 Connector/C++ Usage Notes
11 Connector/C++ Known Bugs and Issues
12 Connector/C++ Support
Index