Showing posts with label Mysql Server Information. Show all posts
Showing posts with label Mysql Server Information. Show all posts

Friday, 5 June 2015

Mysql: Display mysql server information

<?php
//enter you own username and password below
mysql_connect("localhost", "", "") or die("Could not connect: " . mysql_error());
//display server version
printf ("MySQL server version: %s\n", mysql_get_server_info());
?>