PHP Version 4.1.1 System Windows NT 5.0 build 2195 
Build Date Dec 30 2001 
Server API Apache 
Virtual Directory Support enabled 
Configuration File (php.ini) Path C:\WINNT\php.ini 
ZEND_DEBUG disabled 
Thread Safety enabled 

解决方案 »

  1.   

    php5不是默认支持mysql,需修改php.ini
    不要说不会改,连未定型的东西都敢用。不是高手也差不了多少。
      

  2.   

    php5不是默认支持mysql,需修改php.ini
    不要说不会改,连未定型的东西都敢用。不是高手也差不了多少。
      

  3.   

    我用的是PHP Version 4.0.4pl1 运行phpinfo()函数,就会显示关于mysql的支持信息如下:mysql
    MySQL Support enabled 
    Active Persistent Links 0 
    Active Links 0 
    Client API version 3.23.22-beta 
      

  4.   

    在PHP5的PHP.INI文件里好像说的是内建支持,不过我没搞成功。还是装回4吧
      

  5.   

    我也是同样的情况,装了PHP5,但连不上mysql!
      

  6.   

    用php5beta2版本,然后extensions=php_mysql.dll才可以,mysql客户端已经不是默认绑定的了.
      

  7.   

    在哪找php_mysql.dll啊?
    php/extensions中找不到。
      

  8.   

    phpbeta2版本中有的beta1版本中没有...
      

  9.   

    你去http://snaps.php.net/下载新的就可以了.
      

  10.   

    HOHO~~~ 今天我装的PHP4.3.2也连不是MySql了.<html> 
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
     <head> 
      <title>Apache、PHP、MySQL 整体测试</title> 
     </head> 
      
     <body bgcolor="white">  <script language = "php">   $dbhost = 'localhost'; 
      $dbuser = 'root'; 
      $dbpass = ''; 
      $dbname = 'test2'; 
       $dbtable = 'books';    /* ------ 数据库连结 -------- */ 
       $mysql_link = mysql_connect($dbhost,$dbuser,$dbpass); 
      $column = mysql_list_fields($dbname,$dbtable,$mysql_link); 
       $sql = "SELECT * FROM $dbtable"; 
      $result = mysql_db_query($dbname,$sql);  </script>  <table bgcolor="black"> 
     <tr><td> 
     <table> 
      
     <script language = "php"> 
      
       while($value = mysql_fetch_array($result)) 
      { 
          print "<tr BGCOLOR=YELLOW>"; 
      
          for($i=0; $i< mysql_num_fields($column); $i++ ) 
          { 
    print "<td> $value[$i] </td>"; 
      } 
      
          print "</tr>"; 
        } 
        
        mysql_free_result($result); 
        mysql_close(); 
        
     </script> 
      
     </table> 
     </td></tr> 
     </table>  </body> 
      
    </html> 错误如下: 
    Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061) in C:\Apache\Apache2\htdocs\PHP_01\EX02\EX02-01.php on line 18 Warning: mysql_list_fields(): supplied argument is not a valid MySQL-Link resource in C:\Apache\Apache2\htdocs\PHP_01\EX02\EX02-01.php on line 19 Warning: mysql_db_query(): Can't connect to MySQL server on 'localhost' (10061) in C:\Apache\Apache2\htdocs\PHP_01\EX02\EX02-01.php on line 21 Warning: mysql_db_query(): A link to the server could not be established in C:\Apache\Apache2\htdocs\PHP_01\EX02\EX02-01.php on line 21