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