php解压缩以后,应该是会有php_mysql.dll文件的.
没有,再去下载个新的包.copy php_mysql.dll和lib_mysql.dll到apache的执行文件所在目录或者system32下.
去掉php.ini里面extension=php_mysql.dll语句前面的;号,如果没有,自己加上就可以了.重启apache.
没有,再去下载个新的包.copy php_mysql.dll和lib_mysql.dll到apache的执行文件所在目录或者system32下.
去掉php.ini里面extension=php_mysql.dll语句前面的;号,如果没有,自己加上就可以了.重启apache.
解决方案 »
- 大伙推荐一款开源的blog系统
- 请问php如何开发一款可二次开发的程序?
- PHPCMS2008
- 这个问题怎么解决Fatal errorCall to undefined function mysql_connect() in conn\conn.php
- 通过Activex调用word,实现在线编辑,保存时,IIS下可以,apache不行(100)
- 帮我看看乱码的原因
- 关于URL转发的问题(此转发非亦转发)
- 超级简单的问题!希望大哥指点一下,只是一句话而已,
- 请问PHP有连接ACCESS不通过ODBC的方法吗?
- 数组使用的问题,两种下标为什么只一种可以?
- mysql数据库表中如何自动修改某字段
- 求一对加密解密算法 一个ubuntu shell 脚本的 一个PHP的 或者给个算法描述 谢谢!
PHP 4The PHP MySQL extension is compiled into PHP.
PHP 5+MySQL is no longer enabled by default, so the php_mysql.dll DLL must be enabled inside of php.ini. Also, PHP needs access to the MySQL client library. A file named libmysql.dll is included in the Windows PHP distribution and in order for PHP to talk to MySQL this file needs to be available to the Windows systems PATH. See the FAQ titled "How do I add my PHP directory to the PATH on Windows" for information on how to do this. Although copying libmysql.dll to the Windows system directory also works (because the system directory is by default in the system's PATH), it's not recommended.As with enabling any PHP extension (such as php_mysql.dll), the PHP directive extension_dir should be set to the directory where the PHP extensions are located. See also the Manual Windows Installation Instructions. An example extension_dir value for PHP 5 is c:\php\ext 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.
查看php.ini的位置,看是否修改的正确的php.ini
然后再查看有没有mysql支持.
mysql php apache都被我卸了 重装了遍 搞定