> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/release-notes/connectors/c/3.3/3.3.0.md).

# Connector/C 3.3.0.rc1 Release Notes

Release notes for MariaDB Connector/C 3.3.0.rc1, a Release Candidate (RC) release published 15 February 2022.

{% hint style="info" %}

<p align="center">The most recent release of <a href="/docs/connectors/mariadb-connector-c.md">MariaDB Connector/C</a> is: <a href="/docs/release-notes/connectors/c/3.4/3.4.11.md"><strong>3.4.11</strong></a></p>

<p align="center"><a href="https://mariadb.com/downloads/connectors/connectors-data-access/c-connector" class="button primary">Download Connector/C 3.4.11</a></p>
{% endhint %}

<a href="https://mariadb.com/downloads/connectors/connectors-data-access/c-connector" class="button primary">Download</a> <a href="/docs/release-notes/connectors/c/3.3/3.3.0.md" class="button secondary">Release Notes</a> <a href="/docs/release-notes/connectors/c/changelogs/3.3/3.3.0.md" class="button secondary">Changelog</a> <a href="/docs/connectors/mariadb-connector-c.md" class="button secondary">About MariaDB Connector/C</a>

**Release date:** 15 Feb 2022

This is a [***Release Candidate (RC)***](/docs/release-notes/community-server/about/release-criteria.md) release of MariaDB Connector/C, formerly known as MariaDB Client Library for C.

{% hint style="info" %}
**For a description of this library see the** [**MariaDB Connector/C**](/docs/connectors/mariadb-connector-c.md) **page.**
{% endhint %}

{% hint style="danger" %}

### Do not use non-stable (non-GA) releases in production!

{% endhint %}

## New features

### Restrict authentication plugins ([CONC-544](https://jira.mariadb.org/browse/CONC-544))

Added new option MARIADB\_OPT\_RESTRICTED\_AUTH (and corresponding "restricted-auth" option for configuration files) which specifies on or more comma separated authentication plugins which are allowed for authentication.

If the server asks for an authentication plugin not listed in this option the connect attempt will fail with error CR\_PLUGIN\_NOT\_ALLOWED.

### ZStandard compression support

Zstd compression is now supported for connections to a MySQL Server 8.0 or newer.\
Compression algorithms are now provided via plugins. If the Zstd compression plugin is not part of a downloaded package it means, that zstd is not installed by default on this platform. In this case you have to install the zstd libraries and include files and build the plugin from source.

### Support for semi synchronous replication ([CONC-470](https://jira.mariadb.org/browse/CONC-470))

Beside already supported asynchronous replication the replication/binlog API now supports semi synchronous replication.

### Failover capabilities ([CONC-365](https://jira.mariadb.org/browse/CONC-365))

host parameter of mysql\_real\_connect (and corresponding configuration settings MYSQL\_OPT\_HOST for mysql\_options() api call and host key in configuration files) now accepts to specify multiple hosts and ports.

When establishing a connection, the list of specified hosts is run through until a connection can be established. If no connection can be established to any of the specified hosts, an error is returned.

### MARIADB\_CONNECTION\_BYTES\_READ and MARIADB\_CONNECTION\_BYTES\_SENT

mariadb\_get\_infov now supports options MARIADB\_CONNECTION\_BYTES\_READ and MARIADB\_CONNECTION\_BYTES\_SENT to obtain the bytes sent or read to/from database server.

### Connection string support ([CONC-247](https://jira.mariadb.org/browse/CONC-247))

A connection string contains key/value pairs, separated by a semicolon as used in ODBC. Supported keys are all configuration options which can be used in MariaDB configuration files. For a complete list check [config\_files#configuration-options](https://github.com/mariadb-corporation/mariadb-connector-c/wiki/config_files#configuration-options).

The connection string must contain at least one semicolon, otherwise it will be interpreted as hostname. Unknown or invalid keys will be ignored.

To connect via connection string, the following methods might be used:

* by specifying connection option in configuration file:
* by using mariadb\_connect() macro
* by passing connection string in host parameter to mysql\_real\_connect

## Bugs fixed

* [CONC-467](https://jira.mariadb.org/browse/CONC-467): rotate as first event isn't handled correctly (replication/binlog api)

## Changelog

For a list of changes made in this release, with links to detailed information on each push, see the [changelog](/docs/release-notes/connectors/c/changelogs/3.3/3.3.0.md).

{% hint style="info" %}
Be notified of new MariaDB Server releases automatically by [subscribing](https://lists.mariadb.org/postorius/lists/announce.lists.mariadb.org/) to the MariaDB Foundation community announce 'at' lists.mariadb.org announcement list (this is a low traffic, announce-only list). MariaDB plc customers will be notified for all new releases, security issues and critical bug fixes for all MariaDB plc products thanks to the Notification Services.

MariaDB may already be included in your favorite OS distribution. More information can be found on the [Distributions which Include MariaDB](/docs/general-resources/distributions-including-mariadb.md) page.
{% endhint %}

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

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