PHP头条
热点:

php连接mysql数据库出现有关问题找不到指定的程序


php连接mysql数据库出现问题 找不到指定的程序
启动apache时 
有如下 提示
  PHP Startup:Unable to load dynamic library 'd:\php5.0.0\ext\php_mysql.dll'-找不到指定的程序

我看了下 在这个目录中有这个文件 
在php.ini中 我己经去掉了相对应的extension的分号
不知道什么原因

------解决方案--------------------
将libmysql.dll copy到apache的目录或者system32目录下。重启。
如果不行再将php_mysql.dll copy到apache目录或者system32目录。重启
------解决方案--------------------
如果将libmysql.dll php_mysql.dll都copy到system32下,还不行
哪我也不知道了.
------解决方案--------------------
php5根目录下的php5ts.dll、libmysql.dll、libmcrypt.dll这三个文件放到系统的system32目录下
我是用IIS建的,不知道APACHE是不是一样。你把原来装的删掉再重新装一遍试试,我开始也是出现链接不到数据库,就是这步忘记了。
------解决方案--------------------
http://cn.php.net/manual/en/mysql.installation.php


PHP 5+
Note: If when starting the web server an error similar to the following occurs: "Unable to load dynamic library './php_mysql.dll'", this is because php_mysql.dll and/or libmysql.dll cannot be found by the system. 

还有就是确定你的apache读的是那个php.ini文件,使用phpinfo()看看

www.phpzy.comtrue/phprm/24563.htmlTechArticlephp连接mysql数据库出现有关问题找不到指定的程序 php连接mysql数据库出现问题 找不到指定的程序 启动apache时 有如下 提示 PHP Startup:Unable to load dynamic library 'd:\php5.0.0\ext\php_mysql.dll'-找...

相关文章

PHP之友评论

今天推荐