Name
mysql_get_host_info( )
Synopsis
mysql_get_host_info([connection
])
This returns information on the host for the current connection to MySQL. An identifier may be given to retrieve information on a host for a different connection.
... $info = mysql_get_client_info( ); print "Connection Info: $info \n"; ...
Here are the results of this script when you run it on the host containing the server:
Connection Info: 127.0.0.1 via TCP/IP
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.