Name

mysql_get_client_info( )

Synopsis

mysql_get_client_info( )

This returns the library version of the MySQL client for the current connection.

...
$info = mysql_get_client_info( );
print "Client Version:  $info \n";
...

Here are the results of this script on one of my computers:

Client Version:  3.23.40

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.