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

mysql_get_proto_info

mysql_get_proto_info returns the protocol version number used for a MariaDB Connector/C connection; versions 9 and below are not supported.

Syntax

unsigned int mysql_get_proto_info(MYSQL * mysql);

Parameter

Description

Returns the protocol version number for the specified connection.

Return Value

The protocol version number in use.

The client library doesn't support protocol version 9 and prior.

See Also

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

spinner

Last updated

Was this helpful?