For the complete documentation index, see llms.txt. This page is also available as Markdown.

mariadb_rpl_init()

Allocates and initializes a replication handle associated with an existing database connection.

Syntax

#include <mysql.h>
#include <mariadb.h>

MARIADB_RPL *mariadb_rpl_init(MYSQL *mysql)

Parameters

Parameter
Description

mysql

A connection handle previously connected via mysql_real_connect()

Return Value

A pointer to a newly allocated MARIADB_RPL handle on success, or NULL on failure.

Notes

The replication handle must be released by calling mariadb_rpl_close() when no longer needed.

History

Added in MariaDB Connector/C 3.1.0.

See also

This page is: Copyright © 2026 MariaDB. All rights reserved.

Last updated

Was this helpful?