<?php $db_usrname="root"; //此处填你的用户名,本例中为root $db_password="123456"; //此处填你的密码,本例中为空 $conn=mysql_connect("localhost",$db_usrname,$db_password) or die ('I cannot connect to the database.'); mysql_select_db("test",$conn); echo "数据库链接成功"; ?> |
中国稳网 版权所有 wendns.com
|