Moris' Note Book

本博客所有内容皆收集于网上,非本人原创,非心情日记,非研究心得,只是自己浏览的东西的收集
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Call to undefined function mysqli_connect

Posted on 2008-02-20 11:06  moris  阅读(580)  评论(0)    收藏  举报

 you should be able to work with mysqli with this changes:

extension=php_mysqli.dll

and add an extra section called:

[mysqli]
mysqli.max_links=-1
mysqli.default_port=3306
mysqli.default_socket=
mysqli.default_host=
mysqli.default_user=
mysqli.default_pw=

try the following only if you have php5 installed

you need to take the php.ini out of the windows directory and place it in the c:\php directory.

also you need to set the paths to c:\php in the environment variables.

then you need to copy libmysql.dll from c:\php to the windows directory

then you need to restart

 

详细参见:

http://forums.mysql.com/read.php?52,68276,95776#msg-95776