PHP – Get MySQL Server Info

The give PHP example helps you to get the useful info about the MySQL server.

This could be:
1: MySQL server information.
2: MySQL host information.
3: MySQL client information.
4: Print all MySQL status value.

Code Example:
<?php
mysql_connect("localhost","username","password");
echo mysql_get_server_info(). "<br>";
echo mysql_get_client_info() . "<br>";
echo mysql_get_host_info(). "<br>";
$status = explode(' ', mysql_stat());
foreach($status as $value) echo $value."<br />";
?>

Post to Twitter Post to Digg Post to Facebook Post to Google Buzz Send Gmail

2 Comments

  1. avatarVishal Gularia

    Thanks,

    This might be very help full.

  2. What’s up to every body, it’s my first pay a quick visit of this web site; this web site consists
    of remarkable and genuinely good data in support of readers.

Leave a Comment

Your email address will not be published. Required fields are marked *