你的版本是php5吗?如果是,那么请把php.ini中的extension = php_mysql.dll前的分号去掉,再重启服务器

解决方案 »

  1.   

    就是安装redhat9后,默认带的php
      

  2.   

    配置 PHP。INI
    find / -name php.ini
      

  3.   

    可是php.ini 里面没有extension = php_mysql.dll这项
      

  4.   

    ;;;;;;;;;;;;;;;;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;;;;;;;;;
    ;
    ; If you wish to have an extension loaded automatically, use the following
    ; syntax:
    ;
    ;   extension=modulename.extension
    ;
    ; For example:
    ;
       extension=msql.so
    ;
    ; Note that it should be the name of the module only; no directory information
    ; needs to go here.  Specify the location of the extension with the
    ; extension_dir directive above.;;;;
    ; Note: For Red Hat Linux, packaged extension modules are now loaded via
    ; the ini files in the directory /etc/php.d.
    ;;;;里面只有这部分