可以用代码解决。<?php$user="root";$passwd="";$connect=mysql_connect('localhost',$user,$passwd)or die('Could not connect:'.mysql_error());echo ' 第一步:成功建立连接!
';$db='test';mysql_select_db($db) or die('Could not select database ('.$db.') because of :'.mysql_error())