Friday, September 18, 2009

check connection between php server and mysql

make test.php in server DocumentRoot

vi testmysql.php

$db = "";
$host = "localhost";
$user = "root";
$password = "";

$connection = mysql_connect($host, $user, $password) or die ("Could not connect to database");
echo "success";
?>

http://serverip/testmysql.php

0 comments:

Post a Comment