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

WBOY
Release: 2016-06-13 13:07:01
Original
960 people have browsed it

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()看看

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!