OS Manuals

mysql_get_proto_info(3)

mysql_get_proto_info(3) MariaDB Connector/C mysql_get_proto_info(3)

mysql_get_proto_info - Returns protocol version number

#include <mysql.h>
unsigned int mysql_get_proto_info(MYSQL * mysql);
    

Returns the protocol version number for the specified connection

•
mysql - a connection identifier, which was previously allocated by mysql_init(3) and connected by mysql_real_connect(3).

MariaDB Connector/C doesn’t support protocol version 9 and prior.

The protocol version number in use

•
mysql_get_host_info(3)
Version 3.4

mariadb-12.2 12.2.2-r11 · enterprise-packages · ingested 2026-10-30