Php Programming Code Examples
Php > Code Snippets Code Examples
Display mysql server information
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());
?>