Name
mysql_get_proto_info( )
Synopsis
mysql_get_proto_info([connection
])
This returns the protocol version for the current connection to MySQL. An identifier may be given to retrieve the protocol version for a different connection.
... $info = mysql_get_proto_info( ); print "Protocol Version: $info \n"; ...
Here are the results of running this script:
Protocol Version: 10
Get MySQL in a Nutshell 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.