# MariaDB Connector/C++ Guide

## MariaDB Connector/C++ Quickstart Guide

**MariaDB Connector/C++** allows your C++ applications to connect to MariaDB databases, including support for TLS encryption. It provides an object-oriented design and leverages smart pointers for efficient memory management.

{% hint style="info" %}
The most recent **Stable (GA) release is MariaDB Connector/C++ 1.1.6**.
{% endhint %}

### Why Choose Connector/C++?

While you can use MariaDB Connector/C for C++ applications, Connector/C++ offers specific advantages for C++ development:

| **Feature**         | **Connector/C++** | **Connector/C** |
| ------------------- | ----------------- | --------------- |
| Executes SQL        | Yes               | Yes             |
| Object-Oriented     | Yes               | No              |
| Smart Pointers      | Yes               | No              |
| Implements JDBC API | Yes               | No              |

### Next Steps

To get started with MariaDB Connector/C++, you'll typically need to:

1. **Download the Connector/C++ library.** Look for the appropriate package for your operating system and development environment.
2. **Integrate the library into your C++ project.** This usually involves including header files and linking against the library during compilation.
3. **Write C++ code** to establish a connection, execute SQL queries, and process results using the object-oriented API.

<sub>*This page is: Copyright © 2025 MariaDB. All rights reserved.*</sub>

{% @marketo/form formId="4316" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/connectors/connectors-quickstart-guides/mariadb-connector-c++-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
