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
mysql- a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
Description
Returns the protocol version number for the specified connection.
Return Value
The protocol version number in use.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

