PHP mysql_get_host_info() May 25, 2012 Pramod T P It returns MySQL host info Example <?php mysql_connect(“localhost”, “root”, “phpcode”) or die(mysql_error()); echo mysql_get_host_info(); ?> Output Localhost via UNIX socket