Name
mysql_get_server_info( )
Synopsis
mysql_get_server_info([connection
])
This returns the MySQL server version for the current connection to MySQL. An identifier may be given to retrieve the server version for a different connection.
... $info = mysql_get_server_info( ); print "MySQL Server Version: $info \n"; ...
Here are the results of running this script:
MySQL Server Version: 4.1.1-alpha-standard
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.