Name
mysql_get_proto_info
Synopsis
unsigned int mysql_get_proto_info(MYSQL *mysql)
Returns the MySQL protocol version used in the current connection as an integer.
Example
printf("This connection is using MySQL connection protocol ver. %d\n", mysql_get_proto_info());
Get MySQL and mSQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.