php与mysql连接验证页面


# vi php_mysql.php

<?php
$db = mysql_connect("localhost","root","123456") or die("fail");

echo "connect ok!<br>"
?>