Home  >  Article  >  php教程  >  php不支持mysql问题解决方法

php不支持mysql问题解决方法

WBOY
WBOYOriginal
2016-05-25 16:51:551323browse

安装好apache+php+mysql环境之后,安装一个cms提示数据库连接函数不可用,这个明示就是数据库没有配置好,php未支持mysql了,果断进入php.ini进入处理.

今天在机器上配好apache2.0.x+php5+mysql5,部署帝国cms系统的时候,结果发现php5默认是不支持mysql的。

于是便打开php.ini文件,查找

extension=php_mysql.dll,把前面的分号去掉,重启apache,报错找不到php_mysql.dll,这点困难吓不到我,找到extension_dir指向到ext所在的目录,然后把libmysql.dll拷贝到系统system32目录下,重启apache,成功了。

本文链接:

收藏随意^^请保留教程地址.

Statement:
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