我的服务器上php没有装mysqli这个库,操作系统是radhat,请问有什么办法装上mysqli呢?

解决方案 »

  1.   

    我下载了php5.2.9,
     ./configure –prefix=/usr/local/mysqli –with-php-config=/usr/local/php5/bin/php-config –with-mysqli=/usr/local/mysql/bin/mysql_config 
    make;make test时编译通不过?
      

  2.   

    从网上找下这个文件,linux命令rpm安装一下
      

  3.   

    拷贝到php扩展目录下面就可以哦
      

  4.   

    =====================================================================
    FAILED TEST SUMMARY
    ---------------------------------------------------------------------
    Bug #42082 (NodeList length zero should be empty) [ext/dom/tests/bug42082.phpt]
    iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
    posix_initgroups(): Basic tests [ext/posix/tests/posix_initgroups.phpt]
    Test session_decode() function : variation [ext/session/tests/session_decode_variation3.phpt]
    Test session_encode() function : variation [ext/session/tests/session_encode_variation8.phpt]
    Test tempnam() function: usage variations - permissions(0000 to 0777) of dir [ext/standard/tests/file/tempnam_variation4.phpt]
    ==========================================================================================================================================
    EXPECTED FAILED TEST SUMMARY
    ---------------------------------------------------------------------
    ob_start(): Ensure unerasable buffer cannot be flushed by ob_flush(). [tests/output/ob_start_basic_unerasable_005.phpt]
    Bug #42718 (unsafe_raw filter not applied when configured as default filter) [ext/filter/tests/bug42718.phpt]
    SPL: ArrayObject::__construct basic usage with ArrayObject::ARRAY_AS_PROPS. [ext/spl/tests/arrayObject___construct_basic4.phpt]
    SPL: ArrayObject::__construct basic usage with ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS. [ext/spl/tests/arrayObject___construct_basic5.phpt]
    SPL: ArrayObject::exchangeArray() basic usage with object as underlying data store. [ext/spl/tests/arrayObject_exchangeArray_basic3.phpt]
    SPL: ArrayObject::setFlags basic usage with ArrayObject::ARRAY_AS_PROPS. [ext/spl/tests/arrayObject_setFlags_basic1.phpt]
    =====================================================================You may have found a problem in PHP.
    We would like to send this report automatically to the
    PHP QA team, to give us a better understanding of how
    the test cases are doing. If you don't want to send it
    immediately, you can choose "s" to save the report to
    a file that you can send us later.
    Do you want to send this report now? [Yns]
      

  5.   

    make test失败应该不影响php使用吧,你用phpinfo()看看php有没有运行起来,mysqli有没有被加载。
      

  6.   

    没有啊,按照网上的教程,这个make完了应该会生成mysqli.so,没有找到?
    php.ini里面也加入了mysqli了,重启了apache,还是没有mysqli的支持?
      

  7.   

    你的配置命令参数好像有问题,应该是两个-符号
     ./configure --prefix=/usr/local/mysqli --with-php-config=/usr/local/php5/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config 
      

  8.   


    我使用的这个文章的介绍,我在检查了一次,配置参数没有问题?我刚才发出来的消息有问题而已
    http://flysever.blog.163.com/blog/static/3826657220102249242175/
      

  9.   


    请教一下,是否要重装php,这样会不会把系统给高坏了?
      

  10.   

    你的服务器上的php和mysql的路径和配置参数一样吗?