Documentation Home
MySQL Connector/C++ 1.1 Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 285.1Kb
PDF (A4) - 286.0Kb


MySQL Connector/C++ 1.1 Developer Guide

Abstract

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

Connector/C++ 8.0 is highly recommended for use with MySQL Server 8.0 and 5.7. Please upgrade from Connector/C++ 1.1 to Connector/C++ 8.0.

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 the MySQL Forums, where you can discuss your issues with other MySQL users.

Licensing information.  This product may include third-party software, used under license. If you are using a Commercial release of MySQL Connector/C++, see the MySQL Connector/C++ Commercial Release License Information User Manual 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 the MySQL Connector/C++ Community Release License Information User Manual for licensing information, including licensing information relating to third-party software that may be included in this Community release.

Document generated on: 2022-11-05 (revision: 74479)

Table of Contents

Preface and Legal Notices
1 Introduction to Connector/C++
2 Obtaining 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 Dynamically Linking Connector/C++ Against the MySQL Client Library
4.6 Connector/C++ Source-Configuration Options
5 Building Connector/C++ Applications
5.1 Building Connector/C++ Applications: General Considerations
5.2 Building Connector/C++ Applications on Windows with Microsoft Visual Studio
5.3 Building Connector/C++ 1.1 Applications on Linux with NetBeans
6 Connector/C++: Usage Examples
6.1 Connecting to MySQL
6.2 Running a Simple Query
6.3 Fetching Results
6.4 Using Prepared Statements
6.5 Complete Example 1
6.6 Complete Example 2
6.7 Connecting to an Account with an Expired Password
7 Connector/C++ Tutorials
7.1 Prerequisites and Background Information
7.2 Calling Stored Procedures with Statement Objects
7.2.1 Using a Statement for a Stored Procedure That Returns No Result
7.2.2 Using a Statement for a Stored Procedure That Returns an Output Parameter
7.2.3 Using a Statement for a Stored Procedure That Returns a Result Set
7.3 Calling Stored Procedures with PreparedStatement Objects
7.3.1 Using a PreparedStatement for a Stored Procedure That Returns No Result
7.3.2 Using a PreparedStatement for a Stored Procedure That Returns an Output Parameter
7.3.3 Using a PreparedStatement for a Stored Procedure That Returns a Result Set
8 Connector/C++ Debug Tracing
9 Connector/C++ Usage Notes
10 Connector/C++ Connection Options
11 Connector/C++ Known Issues
12 Connector/C++ Support
Index