mysql_get_proto_info — Returns the protocol version number
unsigned int mysql_get_proto_info(MYSQL * mysql);
Returns the protocol version number for the specified connection
Parameters
mysql
A mysql handle, which was previously allocated by mysql_init()
or mysql_real_connect()
.
Return value
The protocol version for the used connection.
| |
---|
The client library doesn't support protocol version 9 and prior. |
See also
mysql_get_host_info()